| Total Complexity | 6 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class OAuthServerBuilder |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var ExtensionInterface[] |
||
| 21 | */ |
||
| 22 | protected $extensions = []; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var Config |
||
| 26 | */ |
||
| 27 | protected $config; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var StorageRepositoryBuilder |
||
| 31 | */ |
||
| 32 | protected $storages; |
||
| 33 | /** |
||
| 34 | * @var EndUserInterface |
||
| 35 | */ |
||
| 36 | private $endUser; |
||
| 37 | |||
| 38 | public function __construct(EndUserInterface $endUser) |
||
| 39 | { |
||
| 40 | $this->config = new Config(); |
||
| 41 | $this->storages = new StorageRepositoryBuilder(); |
||
| 42 | $this->endUser = $endUser; |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getConfig() { |
||
| 46 | return $this->config; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getStorages() { |
||
| 51 | } |
||
| 52 | |||
| 53 | public function addExtension(ExtensionInterface $extension) |
||
| 56 | } |
||
| 57 | |||
| 58 | public function build() |
||
| 65 | } |
||
| 66 | } |