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

__construct() public method

Initializes the scanner node with the necessary data.
public __construct ( string $name = '', string $type = '', string $factory = '', array $params = [], array $directories = [] )
$name string The scanner name
$type string The scanner type
$factory string The scanner type
$params array The scanner params
$directories array The scanner directories
    public function __construct($name = '', $type = '', $factory = '', array $params = array(), array $directories = array())
    {
        // initialize the UUID
        $this->setUuid($this->newUuid());
        // set the data
        $this->name = $name;
        $this->type = $type;
        $this->factory = $factory;
        $this->params = $params;
        $this->directories = $directories;
    }