PHPSA\CompiledExpression::hasValue PHP 메소드

hasValue() 공개 메소드

public hasValue ( ) : boolean
리턴 boolean
    public function hasValue()
    {
        return $this->value !== null || $this->type === self::NULL;
    }

Usage Example

예제 #1
0
 public function testHasValueWithANullType()
 {
     $compiledExpression = new CompiledExpression(CompiledExpression::NULL);
     parent::assertTrue($compiledExpression->hasValue());
 }