AppserverIo\Appserver\Naming\NamingDirectory::__construct PHP Метод

__construct() публичный Метод

Initialize the directory with a name and the parent one.
public __construct ( string $name = null, AppserverIo\Psr\Naming\NamingDirectoryInterface $parent = null )
$name string The directory name
$parent AppserverIo\Psr\Naming\NamingDirectoryInterface The parent directory
    public function __construct($name = null, NamingDirectoryInterface $parent = null)
    {
        // initialize the members
        $this->parent = $parent;
        $this->name = $name;
        $this->directory = null;
        // create a UUID as prefix for dynamic object properties
        $this->serial = Uuid::uuid4()->toString();
    }