Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| SaveUserPreferenceCommand | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /** @license For full copyright and license information, please see the LICENSE.md file. */ |
| 6 | |
| 7 | namespace App\Core\Preference\Application\Command; |
| 8 | |
| 9 | defined('AMMONLY_APP') || exit('Direct script access is forbidden.'); |
| 10 | |
| 11 | use App\Core\Preference\Application\DTO\UserPreferenceDTO; |
| 12 | |
| 13 | /** |
| 14 | * Command for creating or updating a user preference. |
| 15 | * |
| 16 | * @package App\Core\Preference\Application\Command |
| 17 | */ |
| 18 | final readonly class SaveUserPreferenceCommand |
| 19 | { |
| 20 | /** |
| 21 | * SaveUserPreferenceCommand constructor. |
| 22 | * |
| 23 | * @param UserPreferenceDTO $dto Preference data transfer object. |
| 24 | */ |
| 25 | public function __construct( |
| 26 | public UserPreferenceDTO $dto, |
| 27 | ) { |
| 28 | } |
| 29 | } |