libSmalldb  v2.0.1
Public Member Functions | Protected Member Functions | List of all members
Edge Class Reference

Inheritance diagram for Edge

Public Member Functions

 __construct (NestedGraph $graph, string $id, Node $start, Node $end, array $attrs)
 
 remove ()
 
 getStart ()
 
 setStart (Node $newStart)
 
 getEnd ()
 
 setEnd (Node $newEnd)
 
 disconnectNodes ()
 
 getId ()
 
 getGraph ()
 
 getRootGraph ()
 
 offsetSet ($key, $value)
 
offsetGet ($key)
 
 getAttr (string $key, $defaultValue=null)
 
 offsetUnset ($key)
 
 setAttr (string $key, $newValue)
 
 removeAttr (string $key)
 
 offsetExists ($key)
 
 getAttributes ()
 

Protected Member Functions

 onAttrChanged (string $key, $oldValue, $newValue)
 Handle change of an attribute. More...
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( NestedGraph  $graph,
string  $id,
Node  $start,
Node  $end,
array  $attrs 
)

Member Function Documentation

◆ remove()

remove ( )

◆ getStart()

getStart ( )

◆ setStart()

setStart ( Node  $newStart)

◆ getEnd()

getEnd ( )

◆ setEnd()

setEnd ( Node  $newEnd)

◆ disconnectNodes()

disconnectNodes ( )

◆ onAttrChanged()

onAttrChanged ( string  $key,
  $oldValue,
  $newValue 
)
protected

Handle change of an attribute.

◆ getId()

getId ( )
inherited

◆ getGraph()

getGraph ( )
inherited

◆ getRootGraph()

getRootGraph ( )
inherited

◆ offsetSet()

offsetSet (   $key,
  $value 
)
inherited

◆ offsetGet()

& offsetGet (   $key)
inherited

◆ getAttr()

getAttr ( string  $key,
  $defaultValue = null 
)
inherited

◆ offsetUnset()

offsetUnset (   $key)
inherited

◆ setAttr()

setAttr ( string  $key,
  $newValue 
)
inherited
Returns
$this

◆ removeAttr()

removeAttr ( string  $key)
inherited
Returns
$this

◆ offsetExists()

offsetExists (   $key)
inherited

◆ getAttributes()

getAttributes ( )
inherited