PHPSA\CompiledExpression::isObject PHP Method

isObject() public method

public isObject ( ) : boolean
return boolean
    public function isObject()
    {
        return $this->type == self::OBJECT;
    }

Usage Example

Example #1
0
 public function testIsObject()
 {
     // Mixed type could be object but it's unclear
     $expr = new CompiledExpression(CompiledExpression::MIXED, null);
     parent::assertFalse($expr->isObject());
     // Object type is object
     $expr2 = new CompiledExpression(CompiledExpression::OBJECT, null);
     parent::assertTrue($expr2->isObject());
 }