1 | <?php |
||
17 | class EntityNode extends BaseNode |
||
18 | { |
||
19 | /** |
||
20 | * @var EE_Base_Class |
||
21 | */ |
||
22 | protected $initialInstance; |
||
23 | |||
24 | /** |
||
25 | * @var RelationNode[] |
||
26 | */ |
||
27 | protected $relation_nodes; |
||
28 | |||
29 | public function __construct( $instance) |
||
33 | |||
34 | public function discover(){ |
||
41 | |||
42 | |||
43 | /** |
||
44 | * Whether this item has already been initialized |
||
45 | */ |
||
46 | public function isDiscovered() |
||
50 | |||
51 | /** |
||
52 | * @since $VID:$ |
||
53 | * @return boolean |
||
54 | */ |
||
55 | public function isComplete() |
||
68 | |||
69 | /** |
||
70 | * |
||
71 | * @since $VID:$ |
||
72 | * @param $work_to_do |
||
73 | * @return int units of work done |
||
74 | */ |
||
75 | protected function work($work_to_do) |
||
88 | } |
||
89 | // End of file Visitor.php |
||
91 |
If an expression can have both
false
, andnull
as possible values. It is generally a good practice to always use strict comparison to clearly distinguish between those two values.