Doctrine\OrientDB\Query\Command\Create\Link::__construct PHP Метод

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

Sets the source of the link, its $alias and if the link must be $reverse.
public __construct ( string $class, string $property, string $alias, boolean $inverse = false )
$class string
$property string
$alias string
$inverse boolean
    public function __construct($class, $property, $alias, $inverse = false)
    {
        parent::__construct();
        $this->setToken('SourceClass', $class);
        $this->setToken('SourceProperty', $property);
        $this->setToken('Name', $alias);
        if ($inverse) {
            $this->setToken('Inverse', 'INVERSE');
        }
    }