1 | <?php |
||
11 | class Tail extends Command |
||
12 | { |
||
13 | /** |
||
14 | * The console command name. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $name = 'tail'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'tail command'; |
||
26 | |||
27 | /** |
||
28 | * $files. |
||
29 | * |
||
30 | * @var \Illuminate\Filesystem\Filesystem |
||
31 | */ |
||
32 | protected $files; |
||
33 | |||
34 | /** |
||
35 | * __construct. |
||
36 | * |
||
37 | * @param \Illuminate\Filesystem\Filesystem $files |
||
38 | */ |
||
39 | 2 | public function __construct(Filesystem $files) |
|
45 | |||
46 | /** |
||
47 | * fire. |
||
48 | */ |
||
49 | 2 | public function fire() |
|
71 | |||
72 | /** |
||
73 | * readLine. |
||
74 | * |
||
75 | * @param string $file |
||
76 | * @param int $lines |
||
77 | * @return string |
||
78 | */ |
||
79 | 2 | protected function readLine($file, $lines = 50) |
|
102 | |||
103 | /** |
||
104 | * Get the console command arguments. |
||
105 | * |
||
106 | * @return array |
||
107 | */ |
||
108 | 2 | protected function getArguments() |
|
114 | |||
115 | /** |
||
116 | * Get the console command options. |
||
117 | * |
||
118 | * @return array |
||
119 | */ |
||
120 | 2 | protected function getOptions() |
|
126 | } |
||
127 |