1 | <?php |
||
8 | class MonarManager implements Factory |
||
9 | { |
||
10 | /** |
||
11 | * @var string |
||
12 | */ |
||
13 | public const SHITARABA = 'https://jbbs.shitaraba.net'; |
||
14 | |||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $url; |
||
19 | |||
20 | /** |
||
21 | * The application instance. |
||
22 | * |
||
23 | * @var \Illuminate\Contracts\Foundation\Application |
||
24 | */ |
||
25 | protected $app; |
||
26 | |||
27 | /** |
||
28 | * MonarManager constructor. |
||
29 | * |
||
30 | * @param \Illuminate\Contracts\Foundation\Application $app |
||
31 | */ |
||
32 | public function __construct(Application $app) |
||
36 | |||
37 | /** |
||
38 | * @param null $url |
||
39 | * |
||
40 | * @return Driver |
||
41 | */ |
||
42 | public function bbs($url = null): Driver |
||
59 | |||
60 | /** |
||
61 | * @param string $haystack |
||
62 | * @param string $needle |
||
63 | * |
||
64 | * @return bool |
||
65 | */ |
||
66 | protected function startsWith($haystack, $needle): bool |
||
70 | } |
||
71 |