public static function newArea(Project $project, Territory $territory, AreaStatus $status, $name) { $item = new Area(); $item->setProject($project); $item->setTerritory($territory); $item->setStatus($status); $item->setName($name); return $item; }