| 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 | * @final |
||
| 42 | */ |
||
| 43 | final public function __construct() |
||
| 46 | |||
| 47 | /* |
||
| 48 | * {@inheritDoc} |
||
| 49 | */ |
||
| 50 | public static function getShareable( |
||
| 59 | |||
| 60 | /* |
||
| 61 | * {@inheritDoc} |
||
| 62 | */ |
||
| 63 | public function isShareable( |
||
| 68 | } |
||
| 69 |