getSubspecialtyID() public method

get the subspecialty id for this episode.
public getSubspecialtyID ( ) : integer | null
return integer | null
Ejemplo n.º 1
0
 /**
  * @param Firm    $firm
  * @param Episode $episode
  *
  * @return bool
  */
 public function canEditEpisode(Firm $firm, Episode $episode)
 {
     if ($episode->legacy) {
         return false;
     }
     if ($episode->support_services) {
         return $firm->isSupportServicesFirm();
     }
     return $firm->getSubspecialtyID() === $episode->getSubspecialtyID();
 }