Arango PHP ODM

EdgeDefinition
in package

Represents an edge definition for Graphs.

Tags
author

Lucas S. Vieira

Table of Contents

Methods

__construct()  : mixed
EdgeDefinition constructor.
from()  : array<string|int, mixed>
List of vertex collection names. <br> Edges in collection can only be inserted if their _from is in any of the collections here.
getCollection()  : string
Name of the edge collection.
to()  : array<string|int, mixed>
List of vertex collection names. <br> Edges in collection can only be inserted if their _to is in any of the collections here.
toArray()  : array<string|int, mixed>
Array representation of edge definition.

Methods

__construct()

EdgeDefinition constructor.

public __construct(string $collection, array<string|int, mixed> $from, array<string|int, mixed> $to) : mixed
Parameters
$collection : string

Edge collection name.

$from : array<string|int, mixed>

List of vertex collection names.

$to : array<string|int, mixed>

List of vertex collection names.

from()

List of vertex collection names. <br> Edges in collection can only be inserted if their _from is in any of the collections here.

public from() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCollection()

Name of the edge collection.

public getCollection() : string
Return values
string

to()

List of vertex collection names. <br> Edges in collection can only be inserted if their _to is in any of the collections here.

public to() : array<string|int, mixed>
Return values
array<string|int, mixed>

toArray()

Array representation of edge definition.

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results