1 | <?php |
||
13 | class Tail extends Command |
||
14 | { |
||
15 | /** |
||
16 | * The console command name. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $name = 'tail'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'tail command'; |
||
28 | |||
29 | /** |
||
30 | * $files. |
||
31 | * |
||
32 | * @var \Illuminate\Filesystem\Filesystem |
||
33 | */ |
||
34 | protected $files; |
||
35 | |||
36 | /** |
||
37 | * __construct. |
||
38 | * |
||
39 | * @param \Illuminate\Filesystem\Filesystem $files |
||
40 | */ |
||
41 | public function __construct(Filesystem $files) |
||
47 | |||
48 | /** |
||
49 | * fire. |
||
50 | */ |
||
51 | public function handle() |
||
73 | |||
74 | /** |
||
75 | * readLine. |
||
76 | * |
||
77 | * @param string $file |
||
78 | * @param int $lines |
||
79 | * |
||
80 | * @return string|null |
||
81 | */ |
||
82 | protected function readLine($file, $lines = 50): ?string |
||
105 | |||
106 | /** |
||
107 | * Get the console command arguments. |
||
108 | * |
||
109 | * @return array |
||
110 | */ |
||
111 | protected function getArguments(): array |
||
117 | |||
118 | /** |
||
119 | * Get the console command options. |
||
120 | * |
||
121 | * @return array |
||
122 | */ |
||
123 | protected function getOptions(): array |
||
129 | } |
||
130 |