apie-lib /
openapi-schema
| 1 | <?php |
||
| 2 | |||
| 3 | |||
| 4 | namespace Apie\OpenapiSchema\Spec; |
||
| 5 | |||
| 6 | use Apie\CommonValueObjects\Url; |
||
| 7 | use Apie\OpenapiSchema\Concerns\CompositeValueObjectWithExtension; |
||
| 8 | use Apie\OpenapiSchema\Contract\LicenseContract; |
||
| 9 | use Apie\ValueObjects\ValueObjectInterface; |
||
| 10 | |||
| 11 | class License implements ValueObjectInterface, LicenseContract |
||
| 12 | { |
||
| 13 | use CompositeValueObjectWithExtension; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $name; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var Url |
||
| 22 | */ |
||
| 23 | private $url; |
||
|
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
| 24 | |||
| 25 | public function __construct(string $name) |
||
| 26 | { |
||
| 27 | $this->name = $name; |
||
| 28 | } |
||
| 29 | } |
||
| 30 |