<?php
/**
* Base Product Model
*
* @author Vincent van Waasbergen <v.vanwaasbergen@visualmedia.nl>
*/
namespace VisualMedia\ProductBundle\Model;
use VisualMedia\ProductBundle\Entity\BaseProduct;
use VisualMedia\TranslationBundle\Entity\BaseChannel;
use VisualMedia\TranslationBundle\Entity\BaseLocale;
use VisualMedia\TranslationBundle\Traits\ContentTrait;
/**
* Base Product Content Model
*/
abstract class BaseProductContentModel
{
use ContentTrait;
/**
* @param BaseProduct $product
* @param BaseLocale $locale
* @param BaseChannel|null $channel
*/
public function __construct(BaseProduct $product = null, BaseLocale $locale = null, ?BaseChannel $channel = null)
{
$this->product = $product;
$this->locale = $locale;
$this->channel = $channel;
}
/**
* @return string|null
*/
public function getTitle(): ?string
{
return $this->title;
}
/**
* @return string|null
*/
public function getBrowserTitle(): ?string
{
return $this->browserTitle;
}
/**
* @return string|null
*/
public function getMetaDescription(): ?string
{
return $this->metaDescription;
}
/**
* @return string|null
*/
public function getSlug(): ?string
{
return $this->slug;
}
/**
* @return string|null
*/
public function getHtmlContent(): ?string
{
return $this->htmlContent;
}
}