1 | <?php |
||
14 | class CreateCommand extends AbstractBaseCommand |
||
15 | { |
||
16 | /** |
||
17 | * Crafter. |
||
18 | * |
||
19 | * @var CrafterInterface |
||
20 | */ |
||
21 | protected $crafter; |
||
22 | |||
23 | /** |
||
24 | * CreateCommand constructor. |
||
25 | * |
||
26 | * @param CrafterInterface $crafter |
||
27 | * @param HelperSet $helperSet |
||
28 | */ |
||
29 | 9 | public function __construct(CrafterInterface $crafter, HelperSet $helperSet) |
|
34 | |||
35 | public function __invoke($dir, InputInterface $input, OutputInterface $output) |
||
58 | |||
59 | /** |
||
60 | * @param string $package |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | protected function askForPackageName($package = 'vendor/package') |
||
84 | |||
85 | /** |
||
86 | * @param string $author |
||
87 | * |
||
88 | * @return string |
||
89 | */ |
||
90 | protected function askForAuthor($author = 'Author Name <[email protected]>') |
||
110 | |||
111 | /** |
||
112 | * @param bool|string $description |
||
113 | * |
||
114 | * @return string |
||
115 | */ |
||
116 | protected function askForDescription($description = false) |
||
125 | |||
126 | /** |
||
127 | * Parse the author string. |
||
128 | * |
||
129 | * @private |
||
130 | * |
||
131 | * @param string $author |
||
132 | * |
||
133 | * @return array |
||
134 | */ |
||
135 | 9 | private function parseAuthorString($author) |
|
152 | |||
153 | /** |
||
154 | * Check if a given email is a good email. |
||
155 | * |
||
156 | * @param $email |
||
157 | * |
||
158 | * @return bool |
||
159 | */ |
||
160 | 6 | private function isValidEmail($email) |
|
173 | } |
||
174 |
This check looks for access to properties that are not accessible from the current context.
If you need to make a property accessible to another context you can either raise its visibility level or provide an accessible getter in the defining class.