Skip to content
Snippets Groups Projects
Commit 2afbddaf authored by Tobias Gross-Vogt's avatar Tobias Gross-Vogt
Browse files

person bundle version

parent 1d3b3029
No related branches found
No related tags found
No related merge requests found
Pipeline #89891 passed
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"php": ">=7.3", "php": ">=7.3",
"ext-json": "*", "ext-json": "*",
"api-platform/core": "^2.6", "api-platform/core": "^2.6",
"dbp/relay-base-person-bundle": "dev-main", "dbp/relay-base-person-bundle": "^0.1.3",
"dbp/relay-core-bundle": "^0.1.11", "dbp/relay-core-bundle": "^0.1.11",
"symfony/framework-bundle": "^5.4" "symfony/framework-bundle": "^5.4"
}, },
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "7211b8b5c0a91436031cb216d95cbea6", "content-hash": "0df1de6656e47e39e70adb1f054ff0ab",
"packages": [ "packages": [
{ {
"name": "api-platform/core", "name": "api-platform/core",
...@@ -169,17 +169,11 @@ ...@@ -169,17 +169,11 @@
}, },
{ {
"name": "dbp/relay-base-person-bundle", "name": "dbp/relay-base-person-bundle",
"version": "dev-main", "version": "v0.1.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://gitlab.tugraz.at/dbp/relay/dbp-relay-base-person-bundle.git", "url": "git@gitlab.tugraz.at:dbp/relay/dbp-relay-base-person-bundle.git",
"reference": "003581b370018bb13a67d2d9a28fc21d914569f6" "reference": "aaae7b2cb9e6fbb22c116b777fde800312ad10ea"
},
"dist": {
"type": "zip",
"url": "https://gitlab.tugraz.at/api/v4/projects/dbp%2Frelay%2Fdbp-relay-base-person-bundle/repository/archive.zip?sha=003581b370018bb13a67d2d9a28fc21d914569f6",
"reference": "003581b370018bb13a67d2d9a28fc21d914569f6",
"shasum": ""
}, },
"require": { "require": {
"api-platform/core": "^2.6.3", "api-platform/core": "^2.6.3",
...@@ -210,7 +204,6 @@ ...@@ -210,7 +204,6 @@
"symfony/phpunit-bridge": "^5.2", "symfony/phpunit-bridge": "^5.2",
"vimeo/psalm": "^4.4" "vimeo/psalm": "^4.4"
}, },
"default-branch": true,
"type": "symfony-bundle", "type": "symfony-bundle",
"autoload": { "autoload": {
"psr-4": { "psr-4": {
...@@ -250,11 +243,7 @@ ...@@ -250,11 +243,7 @@
"license": [ "license": [
"AGPL-3.0-or-later" "AGPL-3.0-or-later"
], ],
"support": { "time": "2022-02-02T15:46:45+00:00"
"source": "https://gitlab.tugraz.at/dbp/relay/dbp-relay-base-person-bundle/-/tree/main",
"issues": "https://gitlab.tugraz.at/dbp/relay/dbp-relay-base-person-bundle/-/issues"
},
"time": "2022-02-28T01:23:32+01:00"
}, },
{ {
"name": "dbp/relay-core-bundle", "name": "dbp/relay-core-bundle",
...@@ -10087,9 +10076,7 @@ ...@@ -10087,9 +10076,7 @@
], ],
"aliases": [], "aliases": [],
"minimum-stability": "stable", "minimum-stability": "stable",
"stability-flags": { "stability-flags": [],
"dbp/relay-base-person-bundle": 20
},
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
"platform": { "platform": {
......
...@@ -16,7 +16,7 @@ trait CourseTrait ...@@ -16,7 +16,7 @@ trait CourseTrait
/** /**
* @ApiProperty(iri="https://schema.org/name") * @ApiProperty(iri="https://schema.org/name")
* @Groups({"Course:output"}) * @Groups({"BaseCourse:output"})
* *
* @var string * @var string
*/ */
...@@ -24,7 +24,7 @@ trait CourseTrait ...@@ -24,7 +24,7 @@ trait CourseTrait
/** /**
* @ApiProperty * @ApiProperty
* @Groups({"Course:output"}) * @Groups({"BaseCourse:output"})
* *
* @var string * @var string
*/ */
...@@ -32,12 +32,20 @@ trait CourseTrait ...@@ -32,12 +32,20 @@ trait CourseTrait
/** /**
* @ApiProperty(iri="https://schema.org/description") * @ApiProperty(iri="https://schema.org/description")
* @Groups({"Course:output"}) * @Groups({"BaseCourse:output"})
* *
* @var string * @var string
*/ */
private $description; private $description;
/**
* @ApiProperty(iri="https://schema.org/additionalProperty")
* @Groups({"BaseCourse:output"})
*
* @var array
*/
private $localData;
public function getIdentifier(): string public function getIdentifier(): string
{ {
return $this->identifier; return $this->identifier;
...@@ -77,4 +85,24 @@ trait CourseTrait ...@@ -77,4 +85,24 @@ trait CourseTrait
{ {
$this->description = $description; $this->description = $description;
} }
/**
* Allows attaching local data to a Course object.
*
* @param ?mixed $value
*/
public function setLocalData(string $key, $value): void
{
$this->localData[$key] = $value;
}
/**
* Gets local data from a Course object.
*
* @return ?mixed
*/
public function getLocalData(string $key)
{
return $this->localData[$key] ?? null;
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment