| 1 | <?php |
||
| 10 | class SectionQuery implements SettingBagInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var SettingRepositoryInterface |
||
| 14 | */ |
||
| 15 | private $settingRepository; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var Section |
||
| 19 | */ |
||
| 20 | private $section; |
||
| 21 | |||
| 22 | public function __construct(SettingRepositoryInterface $settingRepository, Section $section) |
||
| 27 | |||
| 28 | public function get($key, $default = null) |
||
| 34 | |||
| 35 | public function set($key, $value) |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @param Key $key |
||
| 53 | * @return Setting|null |
||
| 54 | */ |
||
| 55 | private function find(Key $key) |
||
| 59 | } |
||
| 60 |