XStatic\StaticProxy::getInstanceIdentifier PHP Method

getInstanceIdentifier() public static method

Retrieves the Instance Identifier that is used to retrieve the Proxy Subject from the Container
public static getInstanceIdentifier ( ) : string
return string
    public static function getInstanceIdentifier()
    {
        throw new \BadMethodCallException('The' . __METHOD__ . ' method must be implemented by a subclass.');
    }

Usage Example

Beispiel #1
0
 /**
  * @expectedException \BadMethodCallException
  */
 public function testErrorWhenUsingBaseClassDirectly()
 {
     StaticProxy::getInstanceIdentifier();
 }