mirror of
https://github.com/Dannecron/test-php8-attributes.git
synced 2025-12-25 21:32:35 +03:00
php8-style constuctors
This commit is contained in:
@@ -8,13 +8,10 @@ use App\Operation\JokeOperation;
|
||||
|
||||
class JokeCommand extends \Ahc\Cli\Input\Command
|
||||
{
|
||||
private JokeOperation $jokeOperation;
|
||||
|
||||
public function __construct(JokeOperation $jokeOperation)
|
||||
{
|
||||
public function __construct(
|
||||
private JokeOperation $jokeOperation
|
||||
) {
|
||||
parent::__construct('joke', 'Get some joke');
|
||||
|
||||
$this->jokeOperation = $jokeOperation;
|
||||
}
|
||||
|
||||
public function execute(): void
|
||||
|
||||
Reference in New Issue
Block a user