Go\Aop\Support\TruePointFilter::getInstance PHP Method

getInstance() public static method

Singleton pattern
public static getInstance ( ) : self
return self
    public static function getInstance()
    {
        static $instance = null;
        if (!$instance) {
            $instance = new self();
        }
        return $instance;
    }

Usage Example

 /**
  * Return the class filter for this pointcut.
  *
  * @return PointFilter
  */
 public function getClassFilter()
 {
     if (!$this->classFilter) {
         $this->classFilter = TruePointFilter::getInstance();
     }
     return $this->classFilter;
 }
All Usage Examples Of Go\Aop\Support\TruePointFilter::getInstance