|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
-
- namespace Lc\ShopBundle\Model;
-
- use App\Entity\Hub;
- use Doctrine\ORM\Mapping as ORM;
- use Lc\ShopBundle\Context\FilterMerchantInterface;
-
- /**
- * @ORM\MappedSuperclass()
- */
- abstract class Page extends AbstractDocumentEntity implements FilterMerchantInterface
- {
- /**
- * @ORM\Column(type="text", nullable=true)
- */
- protected $content;
-
- /**
- * @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\MerchantInterface", inversedBy="pages")
- * @ORM\JoinColumn(nullable=false)
- */
- protected $merchant;
-
- public function __toString()
- {
- return $this->getTitle() ;
- }
-
- public function getContent(): ?string
- {
- return $this->content;
- }
-
- public function setContent(?string $content): self
- {
- $this->content = $content;
-
- return $this;
- }
-
- public function getMerchant(): ?Hub
- {
- return $this->merchant;
- }
-
- public function setMerchant(?Hub $merchant): self
- {
- $this->merchant = $merchant;
-
- return $this;
- }
- }
|