Doctrine\OrientDB\Query\Command\Index\Create::__construct PHP Method

__construct() public method

Optionally, you can specify the property $class and the $type of the index.
public __construct ( string $property, string $type, string $class = null )
$property string
$type string
$class string
    public function __construct($property, $type, $class = null)
    {
        parent::__construct();
        if ($class) {
            $this->setToken('IndexClass', $class);
        }
        $this->type($type);
        $this->setToken('Property', $property);
    }