/** * @return bool * True if this is an abstract class */ public function isAbstract() : bool { return Flags::bitVectorHasState($this->getFlags(), \ast\flags\MODIFIER_ABSTRACT); }
/** * @return bool * True if this parameter is pass-by-reference * i.e. prefixed with '&'. */ public function isPassByReference() : bool { return Flags::bitVectorHasState($this->getFlags(), \ast\flags\PARAM_REF); }
/** * @return bool * True if this is a static method */ public function isStatic() : bool { return Flags::bitVectorHasState($this->getFlags(), \ast\flags\MODIFIER_STATIC); }
/** * @return bool * True if this method overrides another method */ public function getIsOverride() : bool { return Flags::bitVectorHasState($this->getFlags(), Flags::IS_OVERRIDE); }
/** * @return bool * True if this is a private property */ public function isPrivate() : bool { return Flags::bitVectorHasState($this->getFlags(), \ast\flags\MODIFIER_PRIVATE); }
/** * @return bool * True if this class is a trait */ public function isTrait() : bool { return Flags::bitVectorHasState($this->getFlags(), \ast\flags\CLASS_TRAIT); }
/** * @return bool * True if this was an internal PHP object */ public function isInternal() : bool { return Flags::bitVectorHasState($this->getFlags(), Flags::IS_INTERNAL); }
/** * @return bool * True if this method returns reference */ public function returnsRef() : bool { return Flags::bitVectorHasState($this->getFlags(), \ast\flags\RETURNS_REF); }
/** * @return bool * True if this method returns a value */ public function getHasReturn() : bool { return Flags::bitVectorHasState($this->getFlags(), Flags::HAS_RETURN); }
/** * @return bool * True if this method yields any value(i.e. it is a \Generator) */ public function getHasYield() : bool { return Flags::bitVectorHasState($this->getPhanFlags(), Flags::HAS_YIELD); }