lib/composer/ProductBundle/src/VisualMedia/ProductBundle/Model/BaseProductCategoryContentModel.php line 27

Open in your IDE?
  1. <?php
  2. /**
  3. * Base Product Category Model
  4. *
  5. * @author Vincent van Waasbergen <v.vanwaasbergen@visualmedia.nl>
  6. */
  7. namespace VisualMedia\ProductBundle\Model;
  8. use VisualMedia\ProductBundle\Entity\BaseProductCategory;
  9. use VisualMedia\TranslationBundle\Entity\BaseChannel;
  10. use VisualMedia\TranslationBundle\Entity\BaseLocale;
  11. use VisualMedia\TranslationBundle\Traits\ContentTrait;
  12. /**
  13. * Base Product Category Content Model
  14. */
  15. abstract class BaseProductCategoryContentModel
  16. {
  17. use ContentTrait;
  18. /**
  19. * @param BaseProductCategory $category
  20. * @param BaseLocale $locale
  21. * @param BaseChannel|null $channel
  22. */
  23. public function __construct(BaseProductCategory $category = null, BaseLocale $locale = null, ?BaseChannel $channel = null)
  24. {
  25. $this->category = $category;
  26. $this->locale = $locale;
  27. $this->channel = $channel;
  28. }
  29. /**
  30. * @return string|null
  31. */
  32. public function getTitle(): ?string
  33. {
  34. return $this->title;
  35. }
  36. /**
  37. * @return string|null
  38. */
  39. public function getBrowserTitle(): ?string
  40. {
  41. return $this->browserTitle;
  42. }
  43. /**
  44. * @return string|null
  45. */
  46. public function getMetaDescription(): ?string
  47. {
  48. return $this->metaDescription;
  49. }
  50. /**
  51. * @return string|null
  52. */
  53. public function getSlug(): ?string
  54. {
  55. return $this->slug;
  56. }
  57. /**
  58. * @return string|null
  59. */
  60. public function getHtmlContent(): ?string
  61. {
  62. return $this->htmlContent;
  63. }
  64. }