public function __construct(Project $project) { $this->project = $project; $this->scope = new Scope(); $this->scope->setParent($project->getScope()); }