Firm::getSubspecialtyID PHP Method

getSubspecialtyID() public method

get the id for the subspecialty for the firm - null if one not set (support service firm).
public getSubspecialtyID ( ) : integer | null
return integer | null
    public function getSubspecialtyID()
    {
        return $this->serviceSubspecialtyAssignment ? $this->serviceSubspecialtyAssignment->subspecialty_id : null;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @param Firm      $firm
  * @param Episode   $episode
  * @param EventType $event_type
  *
  * @return bool
  */
 public function canCreateEvent(Firm $firm = null, Episode $episode = null, EventType $event_type = null)
 {
     if ($event_type) {
         if ($event_type->disabled) {
             return false;
         }
         if (!$event_type->support_services && !$firm->getSubspecialtyID()) {
             // Can't create a non-support service event for a support-service firm
             return false;
         }
     }
     if ($firm && $episode) {
         return $this->canEditEpisode($firm, $episode);
     }
     return true;
 }
All Usage Examples Of Firm::getSubspecialtyID