1 | <?php |
||
7 | class AdapterFactory |
||
8 | { |
||
9 | |||
10 | /** |
||
11 | * Get an adapter from a site object |
||
12 | * |
||
13 | * @param \Buttress\Concrete\Locator\Site $site |
||
14 | * @return \Buttress\ConcreteClient\Adapter\Adapter |
||
15 | * @throws \Buttress\ConcreteClient\Exception\VersionMismatchException |
||
16 | */ |
||
17 | 4 | public function forSite(Site $site) |
|
21 | |||
22 | /** |
||
23 | * Get an adapter for a version |
||
24 | * |
||
25 | * @param string $version |
||
26 | * @return \Buttress\ConcreteClient\Adapter\Adapter |
||
27 | * @throws \Buttress\ConcreteClient\Exception\VersionMismatchException |
||
28 | */ |
||
29 | 12 | public function forVersion($version) |
|
49 | } |
||
50 |