|
@@ -10,6 +10,8 @@ use Doctrine\ORM\Mapping as ORM;
|
|
|
*/
|
|
|
class Profile
|
|
|
{
|
|
|
+ public static $VIEW = ['liste' => 0, 'vignette' => 1];
|
|
|
+
|
|
|
/**
|
|
|
* @ORM\Id
|
|
|
* @ORM\GeneratedValue
|
|
@@ -28,6 +30,11 @@ class Profile
|
|
|
*/
|
|
|
private $view;
|
|
|
|
|
|
+ public function __construct()
|
|
|
+ {
|
|
|
+ $this->setView(Profile::$VIEW['vignette']);
|
|
|
+ }
|
|
|
+
|
|
|
public function getId(): ?int
|
|
|
{
|
|
|
return $this->id;
|