IN
IN = "in"
Defines Edge Direction.
This class is a PHP implementation of struct. You can call a
an "In" direction with Direction::in()
and it would
still be an instance of the Direction::class
in() : \Pho\Lib\Graph\Direction
Represents incoming
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275out() : \Pho\Lib\Graph\Direction
Represents outgoin
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275fromString(string $direction) : \Pho\Lib\Graph\Direction
Reproduces Direction object from string representation.
string | $direction |
thrown when the direction string is not recognized.
equals(\Pho\Lib\Graph\Direction $direction) : boolean
Verifies identicality
\Pho\Lib\Graph\Direction | $direction |
__toString() : string
{@internal}
Stringifies
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275toString() : string
Stringifies
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///Users/emresokullu/Code/website/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275__construct(string $value)
Constructor.
No need to check for value validity since the method is set to be private, hence cannot be called by others.
string | $value | Direction::in() or Direction::out() |