AppserverIo\Appserver\Core\InitialContext::getStorage PHP Méthode

getStorage() public méthode

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

Usage Example

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