private _stateAsString ( string $code ) : string | ||
$code | string | State code. |
리턴 | string | State string |
private function _stateAsString($code)
{
switch ($code) {
case self::FREE:
return 'free';
case self::TENTATIVE:
return 'tentative';
case self::BUSY:
return 'busy';
case self::OUTOFOFFICE:
return 'outofoffice';
default:
return 'unknown';
}
}