public function __construct(array $attributes = array()) { foreach ($attributes as $key => $value) { $this->{$key} = $value; } $this->buildPaths(); }