\Pho\Framework\ActorOutSubscribePredicate

Subscribe Predicate

We just define it and it extends \Pho\Lib\Graph\Predicate nothing more.

Summary

Methods
Properties
Constants
__construct()
__call()
binding()
multiplicable()
__toString()
label()
$_methods
T_NOTIFIER
T_SUBSCRIBER
T_CONSUMER
T_FORMATIVE
No protected methods found
$binding
$multiplicable
N/A
No private methods found
No private properties found
N/A

Constants

T_NOTIFIER

T_NOTIFIER = false

A notifier edge sends notification to its head node, following its creation.

T_SUBSCRIBER

T_SUBSCRIBER = true

A subscriber edge retrieves notification updates from its head.

T_CONSUMER

T_CONSUMER = false

A consumer edge returns its head node when the ```$edge->return()``` function is called. Otherwise, it returns the edge itself.

T_FORMATIVE

T_FORMATIVE = false

A formative edge creates new nodes.

Properties

$_methods

$_methods : array

methods that would be available in this class

Type

array

$binding

$binding : boolean

Holds the binding value.

In this generic implementation, it is set false. An edge with a binding predicate would have its head deleted when the edge itself is destroyed.

Type

boolean

$multiplicable

$multiplicable : boolean

Holds the multiplicable value.

In this generic implementation, it is set false. An edge with a multiplicable predicate can be created multiple times from a particular tail to a particular head.

Type

boolean

Methods

__construct()

__construct() 

Constructor.

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

__call()

__call(\Pho\Framework\string  $name, array  $args) 

{@internal}

Used to call predicate traits.

Parameters

\Pho\Framework\string $name
array $args
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

binding()

binding() : boolean

Checks if the predicate is binding.

If a predicate is binding, should the edge's tail node is deleted, not only the edge itself gets stripped off, but the head node must be removed as well.

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

Returns

boolean

multiplicable()

multiplicable() : boolean

Checks if the predicate is multiplicable.

If a predicate is multiplicable, its edge may be created multiple times between a particular tail and a particular head.

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

Returns

boolean

__toString()

__toString() : string

Returns the full class name

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

Returns

string

label()

label() : string

Returns the predicate in string format

Label is actually the short-form class name. For full class name, use (string) $predicate

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

Returns

string