Manager/SupervisorManager.php
public function getSupervisorByKey($key)
    {
        if (isset($this->supervisors[$key])) {
            return $this->supervisors[$key];
        }

        return null;
    }
public function getSupervisorByKey($key)
    {
        if (isset($this->supervisors[$key])) {
            return $this->supervisors[$key];
        }

        return null;
    }
public function getSupervisorByKey ( $ key ) { if ( isset ( $ this -> supervisors [ $ key ] ) ) { return $ this -> supervisors [ $ key ] ; } return null ; }
Get Supervisor by key

@param string $key

@return Supervisor|null
Get Supervisor by key