| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare( strict_types=1 ); |
||
| 11 | class PageBotList extends Page { |
||
| 12 | /** |
||
| 13 | * @private Use self::get() |
||
| 14 | */ |
||
| 15 | public function __construct() { |
||
| 16 | parent::__construct( Config::getInstance()->get( 'list-title' ) ); |
||
| 17 | } |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Instance getter |
||
| 21 | * |
||
| 22 | * @return self |
||
| 23 | */ |
||
| 24 | public static function get() : self { |
||
| 25 | static $instance = null; |
||
| 26 | if ( $instance = null ) { |
||
| 27 | $instance = new self; |
||
| 28 | } |
||
| 29 | return $instance; |
||
|
|
|||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get the actual list of admins |
||
| 34 | * |
||
| 35 | * @return array[] |
||
| 36 | */ |
||
| 37 | public function getAdminsList() : array { |
||
| 39 | } |
||
| 40 | } |
||
| 41 |