public function __construct(ProjectModel $project) { $this->slug = (string) $project->getSlug(); $this->name = (string) $project->getName(); $this->defaultLocale = (string) $project->getDefaultLocale(); $this->description = (string) $project->getDescription(); }
public function __construct(Project $project) { $this->project = $project; $this->name = (string) $project->getName(); $this->defaultLocale = (string) $project->getDefaultLocale(); $this->description = (string) $project->getDescription(); }