| @@ 143-152 (lines=10) @@ | ||
| 140 | /** |
|
| 141 | * @return string |
|
| 142 | */ |
|
| 143 | public function getValidatorMethod() |
|
| 144 | { |
|
| 145 | if ($this->validator != 'yes') { |
|
| 146 | return ''; |
|
| 147 | } |
|
| 148 | ||
| 149 | $class = $this->getClass(); |
|
| 150 | ||
| 151 | return '/**'.PHP_EOL.' * Specify Validator class name.'.PHP_EOL.' *'.PHP_EOL.' * @return mixed'.PHP_EOL.' */'.PHP_EOL.' public function validator()'.PHP_EOL.' {'.PHP_EOL.' return '.$class.'Validator::class;'.PHP_EOL.' }'; |
|
| 152 | } |
|
| 153 | ||
| 154 | /** |
|
| 155 | * @return string |
|
| @@ 185-193 (lines=9) @@ | ||
| 182 | /** |
|
| 183 | * @return string |
|
| 184 | */ |
|
| 185 | public function getPresenterMethod() |
|
| 186 | { |
|
| 187 | if ($this->presenter != 'yes') { |
|
| 188 | return ''; |
|
| 189 | } |
|
| 190 | $class = $this->getClass(); |
|
| 191 | ||
| 192 | return '/**'.PHP_EOL.' * Specify Presenter class name.'.PHP_EOL.' *'.PHP_EOL.' * @return mixed'.PHP_EOL.' */'.PHP_EOL.' public function presenter()'.PHP_EOL.' {'.PHP_EOL.' return '.$class.'Presenter::class;'.PHP_EOL.' }'; |
|
| 193 | } |
|
| 194 | ||
| 195 | /** |
|
| 196 | * @return string |
|