Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pôle IS
Bundles Symfony 2
ng-model-generator-bundle
Commits
71e82bd9
Commit
71e82bd9
authored
Apr 19, 2020
by
Guillaume Perréal
Browse files
Exige un IRI dans les Repositories.
parent
c59b3981
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/php/Models/Types/Objects/Repository.php
View file @
71e82bd9
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment