Eloquent\Phony\Invocation\Invoker::instance PHP Method

instance() public static method

Get the static instance of this invoker.
public static instance ( ) : Invoker
return Invoker The static invoker.
    public static function instance()
    {
        if (!self::$instance) {
            self::$instance = new self();
        }
        return self::$instance;
    }

Usage Example

Beispiel #1
0
 /**
  * Get the static instance of this factory.
  *
  * @return CallFactory The static factory.
  */
 public static function instance()
 {
     if (!self::$instance) {
         self::$instance = new self(CallEventFactory::instance(), Invoker::instance());
     }
     return self::$instance;
 }
All Usage Examples Of Eloquent\Phony\Invocation\Invoker::instance