public function __construct($name = null, $path = null, array $properties = array()) { $this->name = $name; $this->path = $path; foreach ($properties as $property) { $this->addProperty($property); } }