Select Git revision
-
Reiter, Christoph authoredReiter, Christoph authored
CourseTrait.php 1.42 KiB
<?php
declare(strict_types=1);
namespace Dbp\Relay\CourseBundle\Entity;
use ApiPlatform\Core\Annotation\ApiProperty;
use Symfony\Component\Serializer\Annotation\Groups;
trait CourseTrait
{
/**
* @ApiProperty(identifier=true)
*/
private $identifier;
/**
* @ApiProperty(iri="https://schema.org/name")
* @Groups({"Course:output"})
*
* @var string
*/
private $name;
/**
* @ApiProperty
* @Groups({"Course:output"})
*
* @var string
*/
private $type;
/**
* @ApiProperty(iri="https://schema.org/description")
* @Groups({"Course:output"})
*
* @var string
*/
private $description;
public function getIdentifier(): string
{
return $this->identifier;
}
public function setIdentifier(string $identifier): void
{
$this->identifier = $identifier;
}
public function getName(): string
{
return $this->name;
}
public function setName(string $name): void
{
$this->name = $name;
}
public function getType(): string
{
return $this->type;
}
public function setType(string $type): void
{
$this->type = $type;
}
public function getDescription(): string
{
return $this->description;
}
public function setDescription(string $description): void
{
$this->description = $description;
}
}