<?phpnamespace App\Entity;use App\Entity\Traits\LinkTrait;use App\Entity\Traits\MetaTrait;use Doctrine\ORM\Mapping as ORM;use App\Entity\Traits\ActiveTrait;use App\Entity\Traits\DeleteTrait;use App\Entity\Traits\TranslateTrait;use Gedmo\Mapping\Annotation as Gedmo;use App\Entity\Traits\ImageUploadTrait;use App\Entity\Traits\TitleAndContentTrait;use App\Entity\Interfaces\DefaultLinkedEntity;use App\Entity\Traits\SortOrderTrait;use Gedmo\Timestampable\Traits\TimestampableEntity;use Symfony\Component\Validator\Constraints as Assert;/** * MeetTheTeam. * * @Gedmo\Loggable * * @Gedmo\TranslationEntity(class="App\Entity\TeamMemberTranslations") */#[ORM\Entity(repositoryClass: \App\Repository\MeetTheTeamRepository::class)]#[ORM\Table(name: 'meettheteam')]class TeamMember implements DefaultLinkedEntity{ use TitleAndContentTrait; use LinkTrait; use MetaTrait; use SortOrderTrait; use ActiveTrait; use DeleteTrait; use ImageUploadTrait; use TimestampableEntity; use TranslateTrait; #[ORM\Column(name: 'id', type: 'integer')] #[ORM\Id] #[ORM\GeneratedValue(strategy: 'AUTO')] private int $id; /** * @Gedmo\Translatable */ #[Assert\NotBlank(message: 'The position should not be blank')] #[ORM\Column(name: 'position', type: 'string', length: 255)] private ?string $position = null; /** * @Gedmo\Translatable */ #[Assert\Url(protocols: ['http', 'https'])] #[ORM\Column(type: 'string', length: 255, nullable: true)] private $linkedin; /** * Get id. */ public function getId(): int { return $this->id; } /** * Set position. * * @param string $position */ public function setPosition($position): self { $this->position = $position; return $this; } /** * Get position. */ public function getPosition(): ?string { return $this->position; } // REQUIRED BY THE LINKS TRAIT public function getLinkedPageId(): int { return 5; } public function getLinkedin(): ?string { return $this->linkedin; } public function setLinkedin(?string $linkedin): self { $this->linkedin = $linkedin; return $this; }}