3 namespace Galerie\Model;
10 protected $description;
15 public function exchangeArray($data)
17 $this->id = isset($data['id']) ? $data['id'] : null;
18 $this->id_user = isset($data['is_user']) ? $data['id_user'] : null;
19 $this->name = isset($data['name']) ? $data['name'] : null;
20 $this->description = isset($data['description']) ? $data['description'] : null;
21 $this->created = isset($data['created']) ? $data['created'] : null;
22 $this->updated = isset($data['updated']) ? $data['updated'] : null;
25 public function toArray($data)
29 'is_user' => $this->id_user,
30 'name' => $this->name,
31 'description' => $this->description,
32 'created' => $this->created,
33 'updated' => $this->updated,
38 public function getId()
43 public function setId($id)
49 public function getIdUser()
51 return $this->id_user;
54 public function setIdUser($id_user)
56 $this->id_user = $id_user;
60 public function getName()
65 public function setName($name)
71 public function getDescription()
73 return $this->description;
76 public function setDescription ($description)
78 $this-> description = $description;
82 public function getCreated()
84 return $this->created;
87 public function setCreated($created)
89 $this->created = $created;
93 public function getUpdated()
95 return $this->updated;
98 public function setUpdated($updated)
100 $this->updated = $updated;