您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

32 行
601B

  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\ShopBundle\Context\ReductionInterface;
  5. /**
  6. * @ORM\MappedSuperclass()
  7. */
  8. abstract class OrderReductionCredit implements ReductionInterface
  9. {
  10. use ReductionTrait ;
  11. /**
  12. * @ORM\Column(type="string", length=255)
  13. */
  14. protected $title;
  15. public function getTitle(): ?string
  16. {
  17. return $this->title;
  18. }
  19. public function setTitle(string $title): self
  20. {
  21. $this->title = $title;
  22. return $this;
  23. }
  24. }