PHPSA\CompiledExpression::hasValue PHP Method

hasValue() public method

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

Usage Example

コード例 #1
0
ファイル: CompiledExpressionTest.php プロジェクト: ovr/phpsa
 public function testHasValueWithANullType()
 {
     $compiledExpression = new CompiledExpression(CompiledExpression::NULL);
     parent::assertTrue($compiledExpression->hasValue());
 }