Created
December 7, 2019 15:50
-
-
Save theodesp/ba5af81edf86348b86f8811872c06bc1 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* @ORM\Entity(repositoryClass="App\Repository\ProductRepository") | |
*/ | |
class Product | |
{ | |
use ORMBehaviors\Translatable\Translatable; | |
/** | |
* @ORM\Id() | |
* @ORM\GeneratedValue(strategy="NONE") | |
* @ORM\Column(type="integer") | |
*/ | |
private $id; | |
public function getId() | |
{ | |
return $this->id; | |
} | |
public function setId($id): void | |
{ | |
$this->id = $id; | |
} | |
/** | |
* @ORM\Column(type="integer") | |
*/ | |
private $price; | |
/** | |
* @return mixed | |
*/ | |
public function getPrice() | |
{ | |
return $this->price; | |
} | |
/** | |
* @param mixed $price | |
*/ | |
public function setPrice($price): void | |
{ | |
$this->price = $price; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment