AppserverIo\Appserver\Core\Api\Node\AccessNode::getType PHP Méthode

getType() public méthode

Returns the type for the kind of access mode
public getType ( ) : string
Résultat string The type for the kind of access mode
    public function getType()
    {
        return $this->type;
    }

Usage Example

 /**
  * Tests if the getType() method works as expected.
  *
  * @return void
  */
 public function testGetType()
 {
     // initialize the access node
     $this->access->setNodeName('access');
     $this->access->initFromFile(__DIR__ . '/_files/access.xml');
     // check the type and params
     $this->assertSame('allow', $this->access->getType());
     $this->assertSame(array('X_REQUEST_URI' => '.*'), $this->access->getParamsAsArray());
 }
AccessNode