Mutagenesis\Mutable::_parseTString PHP 메소드

_parseTString() 공개 메소드

Parse a T_STRING value to identify a possible mutation type
public _parseTString ( array $token ) : string
$token array
리턴 string
    public function _parseTString(array $token)
    {
        $type = null;
        if (strtolower($token[1]) == 'true') {
            $type = 'BooleanTrue';
        } elseif (strtolower($token[1]) == 'false') {
            $type = 'BooleanFalse';
        }
        return $type;
    }