public static function create(Doctor $doctor) { $workTime = new self(new RM_Compositor(array())); $workTime->setDoctor($doctor); return $workTime; }