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