Skip to content

Commit

Permalink
Merge pull request #15 from Jeckel-Lab/feature/add-view-model
Browse files Browse the repository at this point in the history
Add view model
  • Loading branch information
jeckel committed Oct 26, 2021
2 parents ea1aff2 + df84032 commit 9be094f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
}
},
"require-dev": {
"vimeo/psalm": "^4.3",
"vimeo/psalm": "^4.11",
"squizlabs/php_codesniffer": "^3.5",
"phpmd/phpmd": "^2.8",
"phpro/grumphp": "^0.19 || ^1.2.0",
"phpstan/phpstan": "^0.12.91"
"phpstan/phpstan": "^0.12.99"
},
"suggest": {
"vimeo/psalm": "Using psalm with this 'contract' will enable immutability and strong typing verification"
Expand Down
20 changes: 20 additions & 0 deletions src/Presentation/ViewModel/ViewModel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* @author: Julien Mercier-Rojas <julien@jeckel-lab.fr>
* Created at: 26/10/2021
*/

declare(strict_types=1);

namespace JeckelLab\Contract\Presentation\ViewModel;

use JsonSerializable;

/**
* @psalm-immutable
*/
interface ViewModel extends JsonSerializable
{

}

0 comments on commit 9be094f

Please sign in to comment.