1 | <?php |
||
17 | final class ConsoleIO |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private static $format = '<fg=yellow>[%s]</> %s'; |
||
23 | |||
24 | /** |
||
25 | * @var IOInterface |
||
26 | */ |
||
27 | private $io; |
||
28 | |||
29 | /** |
||
30 | * @var RootPackageInterface |
||
31 | */ |
||
32 | private $package; |
||
33 | |||
34 | /** |
||
35 | * @param IOInterface $io |
||
36 | * @param RootPackageInterface $package |
||
37 | */ |
||
38 | public function __construct(IOInterface $io, RootPackageInterface $package) |
||
43 | |||
44 | /** |
||
45 | * @return bool |
||
46 | */ |
||
47 | public function isInteractive() |
||
51 | |||
52 | /** |
||
53 | * @param string $line |
||
54 | * @param array $replacements |
||
55 | */ |
||
56 | public function write($line, array $replacements = array()) |
||
66 | |||
67 | /** |
||
68 | * @param string $what |
||
69 | * |
||
70 | * @return bool |
||
71 | */ |
||
72 | public function ask($what) |
||
76 | } |
||
77 |
Late static binding only has effect in subclasses. A
final
class cannot be extended anymore so late static binding cannot occurr. Consider replacingstatic::
withself::
.To learn more about late static binding, please refer to the PHP core documentation.