Created
December 7, 2019 15:51
-
-
Save theodesp/902fd5f1e2b42b52ca679ceb9e9b7f3b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
use Knp\DoctrineBehaviors\Model as ORMBehaviors; | |
/** | |
* @ORM\Entity | |
*/ | |
class ProductTranslation | |
{ | |
use ORMBehaviors\Translatable\Translation; | |
/** | |
* @ORM\Column(type="string", length=255) | |
*/ | |
protected $name; | |
/** | |
* @ORM\Column(type="string", length=255) | |
*/ | |
protected $description; | |
/** | |
* @return string | |
*/ | |
public function getName() | |
{ | |
return $this->name; | |
} | |
/** | |
* @param string | |
* @return null | |
*/ | |
public function setName($name) | |
{ | |
$this->name = $name; | |
} | |
/** | |
* @return string | |
*/ | |
public function getDescription() | |
{ | |
return $this->description; | |
} | |
/** | |
* @param string | |
* @return null | |
*/ | |
public function setDescription($description) | |
{ | |
$this->description = $description; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment