Tuesday, September 21, 2010

PHP The following is an example of a class with a fluent interface implemented in PHP:

class Car {
 private $speed;
 private $color;
 private $doors;
 public function setSpeed($speed){
  $this->speed = $speed;
  return $this;
 public function setColor($color) {
  $this->color = $color;
  return $this;
 public function setDoors($doors) {
  $this->doors = $doors;
  return $this;
// Fluent interface
$myCar = new Car();
// Example without fluent interface
$myCar2 = new Car();
Post a Comment

How to mount an ISO file in ubuntu?

Maybe, instead of installing additional software, you can use what the system has to this end: Create a directory to serve as the mount ...