Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | abstract class SchemaBuilder |
||
17 | { |
||
18 | protected static $schemas = []; |
||
19 | |||
20 | /** @var string */ |
||
21 | private $schemasEndpointUrl; |
||
22 | |||
23 | /** |
||
24 | * @param string $schemasEndpointUrl |
||
25 | */ |
||
26 | public function __construct($schemasEndpointUrl) |
||
27 | { |
||
28 | $this->setSchemasEndpointUrl($schemasEndpointUrl); |
||
29 | } |
||
30 | |||
31 | /** |
||
32 | * @param string $schemasEndpointUrl |
||
33 | */ |
||
34 | public function setSchemasEndpointUrl($schemasEndpointUrl) |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param string $schemaId |
||
41 | * |
||
42 | * @return \Tmilos\ScimSchema\Model\v1\Schema|\Tmilos\ScimSchema\Model\v2\Schema|Schema |
||
43 | */ |
||
44 | public function get($schemaId) |
||
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return string |
||
57 | */ |
||
58 | abstract protected function getSchemaClass(); |
||
59 | } |
||
60 |