/** * This function will return number of timeslots * * @param void * @return integer */ function countTimeslots() { if (is_null($this->timeslots_count)) { $this->timeslots_count = Timeslots::countTimeslotsByObject($this); } return $this->timeslots_count; }