include missing
This commit is contained in:
parent
88b5850c32
commit
d3e12785bb
20 changed files with 584 additions and 4 deletions
13
src/Attributes/FromInput.php
Normal file
13
src/Attributes/FromInput.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Icefox\DTO\Attributes;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PARAMETER)]
|
||||
class FromInput
|
||||
{
|
||||
public function __construct(public readonly string $name) {}
|
||||
}
|
||||
16
src/Attributes/FromMapper.php
Normal file
16
src/Attributes/FromMapper.php
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Icefox\DTO\Attributes;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PARAMETER)]
|
||||
class FromMapper
|
||||
{
|
||||
/**
|
||||
* @param class-string $class
|
||||
*/
|
||||
public function __construct(public readonly string $class) {}
|
||||
}
|
||||
13
src/Attributes/FromRouteParameter.php
Normal file
13
src/Attributes/FromRouteParameter.php
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Icefox\DTO\Attributes;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PARAMETER)]
|
||||
class FromRouteParameter
|
||||
{
|
||||
public function __construct(public readonly string $name) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue