public function getRoleNamesAsArray()
    {

        // initialize the array for the role names
        $roleNames = array();

        // prepare the role names
        /** @var AppserverIo\Appserver\Core\Api\Node\RoleNameNode $roleName */
        foreach ($this->getRoleNames() as $roleName) {
            $roleNames[] = $roleName->__toString();
        }

        // return the array with the role names
        return $roleNames;
    }
public function getRoleNamesAsArray()
    {

        // initialize the array for the role names
        $roleNames = array();

        // prepare the role names
        /** @var AppserverIo\Appserver\Core\Api\Node\RoleNameNode $roleName */
        foreach ($this->getRoleNames() as $roleName) {
            $roleNames[] = $roleName->__toString();
        }

        // return the array with the role names
        return $roleNames;
    }
public function getRoleNamesAsArray ( ) { // initialize the array for the role names $ roleNames = array ( ) ; // prepare the role names /** @var AppserverIo\Appserver\Core\Api\Node\RoleNameNode $roleName */ foreach ( $ this -> getRoleNames ( ) as $ roleName ) { $ roleNames [ ] = $ roleName -> __toString ( ) ; } // return the array with the role names return $ roleNames ; }
Return's the role names as array.

@return array The role names as array
Return s the role names as array .