AppserverIo\Appserver\Core\InitialContext::getStorage PHP Method

getStorage() public method

Returns the storage instance.
public getStorage ( ) : AppserverIo\Storage\StorageInterface
return AppserverIo\Storage\StorageInterface The storage instance
    public function getStorage()
    {
        return $this->storage;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * Tests the if the storage has been initialized successfully.
  *
  * @return void
  */
 public function testGetStorage()
 {
     $this->assertInstanceOf('AppserverIo\\Storage\\StorageInterface', $this->initialContext->getStorage());
 }