| 1 | <?php |
||
| 16 | trait Linkable |
||
| 17 | { |
||
| 18 | private $_link = []; |
||
| 19 | |||
| 20 | 1 | public function __clone () |
|
| 21 | { |
||
| 22 | 1 | $this->destroyAllLink(); |
|
| 23 | 1 | } |
|
| 24 | |||
| 25 | 88 | public function haveLink (Election $election) : bool |
|
| 29 | |||
| 30 | 102 | public function countLinks () : int |
|
| 34 | |||
| 35 | 102 | public function getLinks () : ?array |
|
| 39 | |||
| 40 | // Internal |
||
| 41 | # Dot not Overloading ! Do not Use ! |
||
| 42 | |||
| 43 | 116 | public function registerLink (Election $election) : void |
|
| 50 | |||
| 51 | 12 | public function destroyLink (Election $election) : bool |
|
| 62 | |||
| 63 | 3 | protected function destroyAllLink () : void |
|
| 67 | } |
||
| 68 |