AppserverIo\Appserver\Core\Api\Node\ExtractorNode::__construct PHP Method

__construct() public method

Initializes the extractor node with the necessary data.
public __construct ( string $name = '', string $type = '', string $factory = '', boolean $createBackups = false, boolean $restoreBackups = false )
$name string The extractor's name
$type string The extractor's type
$factory string The extractor's factory class name
$createBackups boolean The flag to create backups
$restoreBackups boolean The flag to restore backups
    public function __construct($name = '', $type = '', $factory = '', $createBackups = false, $restoreBackups = false)
    {
        // initialize the UUID
        $this->setUuid($this->newUuid());
        // set the data
        $this->name = $name;
        $this->type = $type;
        $this->factory = $factory;
        $this->createBackups = $createBackups;
        $this->restoreBackups = $restoreBackups;
    }