for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/******************************************************************************
* An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
*
* Copyright (c) 2016 Richard Klees <[email protected]>
* This software is licensed under The MIT License. You should have received
* a copy of the license along with the code.
*/
namespace Lechimp\Dicto\Graph;
/**
* A relation between two nodes in the Graph. It is unidirectional.
class Relation extends Entity {
* @var Node
private $target;
* @param string $type
* @param array<string,mixed> $properties
* @param Node $target
public function __construct($type, array $properties, Node $target) {
parent::__construct($type, $properties);
$this->target = $target;
}
* The target of the relation.
* @return Node
public function target() {
return $this->target;