| 1 | <?php |
||
| 7 | class Sync_Object_Adapter_Factory { |
||
| 8 | /** |
||
| 9 | * @var Sync_Object_Adapter_Factory |
||
| 10 | */ |
||
| 11 | private static $instance; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var Jsonld_Service |
||
| 15 | */ |
||
| 16 | private $jsonld_service; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Sync_Object_Adapter_Factory constructor. |
||
| 20 | * |
||
| 21 | * @param $jsonld_service |
||
| 22 | */ |
||
| 23 | function __construct( $jsonld_service ) { |
||
| 28 | |||
| 29 | static function get_instance() { |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param $type |
||
| 35 | * @param $object_id |
||
| 36 | * |
||
| 37 | * @return Sync_Object_Adapter |
||
| 38 | * @throws \Exception |
||
| 39 | */ |
||
| 40 | function create( $type, $object_id ) { |
||
| 43 | |||
| 44 | } |
||
| 45 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.