1 | <?php |
||
26 | trait ShareableTrait |
||
27 | { |
||
28 | /** |
||
29 | * Shareables' pool |
||
30 | * |
||
31 | * @var ShareableInstance[] |
||
32 | * @access private |
||
33 | * @staticvar |
||
34 | */ |
||
35 | private static $shareables = []; |
||
36 | |||
37 | /** |
||
38 | * minimum constructor |
||
39 | * |
||
40 | * @access public |
||
41 | */ |
||
42 | public function __construct() |
||
45 | |||
46 | /* |
||
47 | * {@inheritDoc} |
||
48 | */ |
||
49 | public static function getShareable( |
||
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | public static function setShareable( |
||
68 | |||
69 | /* |
||
70 | * {@inheritDoc} |
||
71 | */ |
||
72 | public function isShareable( |
||
77 | } |
||
78 |