BetterReflection\Reflection\ReflectionClass::getLocatedSource PHP Method

getLocatedSource() public method

public getLocatedSource ( ) : BetterReflection\SourceLocator\Located\LocatedSource
return BetterReflection\SourceLocator\Located\LocatedSource
    public function getLocatedSource()
    {
        return $this->locatedSource;
    }

Usage Example

 /**
  * @param Reflector $reflector
  * @param MethodNode $node
  * @param ReflectionClass $declaringClass
  * @return ReflectionMethod
  */
 public static function createFromNode(Reflector $reflector, MethodNode $node, ReflectionClass $declaringClass)
 {
     $method = new self();
     $method->declaringClass = $declaringClass;
     // Compat with core reflection means we should NOT pass namespace info
     // for ReflectionMethod
     $method->populateFunctionAbstract($reflector, $node, $declaringClass->getLocatedSource(), null);
     return $method;
 }
All Usage Examples Of BetterReflection\Reflection\ReflectionClass::getLocatedSource