| 1 | <?php |
||
| 13 | abstract class AmbassadorMember |
||
| 14 | { |
||
| 15 | |||
| 16 | use GetUserLoginTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @ORM\Id |
||
| 20 | * @ORM\ManyToOne(targetEntity="AppBundle\Entity\User") |
||
| 21 | * @ORM\JoinColumn(name="user_id", referencedColumnName="login") |
||
| 22 | * @Serializer\Accessor("getUserLogin") |
||
| 23 | * @Serializer\Type("string") |
||
| 24 | * @Serializer\SerializedName("login") |
||
| 25 | */ |
||
| 26 | protected $user; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | * @ORM\Column(name="short_description", type="text", nullable=false) |
||
| 31 | * @Serializer\SerializedName("short_description") |
||
| 32 | */ |
||
| 33 | protected $shortDescription; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var string |
||
| 37 | * @ORM\Column(name="description", type="text", nullable=true) |
||
| 38 | */ |
||
| 39 | protected $description; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @var Ambassador |
||
| 43 | */ |
||
| 44 | protected $ambassador; |
||
| 45 | |||
| 46 | 5 | public function __construct( |
|
| 57 | |||
| 58 | 1 | public function setShortDescription(string $shortDescription) |
|
| 62 | |||
| 63 | 1 | public function setDescription(string $description) |
|
| 67 | } |
||
| 68 |