Commit 71e82bd9 authored by Guillaume Perréal's avatar Guillaume Perréal

Exige un IRI dans les Repositories.

parent c59b3981
......@@ -42,7 +42,7 @@ final class Repository extends ClassType
/** @var Operation[] */
private $operations = [];
/** @var Path|null */
/** @var Path */
private $iri;
/** @var Type */
......@@ -56,7 +56,7 @@ final class Repository extends ClassType
*
* @param Operation[] $operations
*/
public function __construct(ClassName $resource, Type $resourceType, Property $identifier, ?Path $iri, array $operations, string $description = '')
public function __construct(ClassName $resource, Type $resourceType, Property $identifier, Path $iri, array $operations, string $description = '')
{
parent::__construct(
$resource->getBaseName() . 'Repository',
......@@ -96,7 +96,7 @@ final class Repository extends ClassType
/**
* Get iri.
*/
public function getIRI(): ?Path
public function getIRI(): Path
{
return $this->iri;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment