3 namespace Galerie\Model;
14 public function exchangeArray($data)
16 $this->id = isset($data['id']) ? $data['id'] : null;
17 $this->id_user = isset($data['is_user']) ? $data['id_user'] : null;
18 $this->name = isset($data['name']) ? $data['name'] : null;
19 $this->description = isset($data['description']) ? $data['description'] : null;
20 $this->created = isset($data['created']) ? $data['created'] : null;
21 $this->updated = isset($data['updated']) ? $data['updated'] : null;
24 public function toArray()
28 'is_user' => $this->id_user,
29 'name' => $this->name,
30 'description' => $this->description,
31 'created' => $this->created,
32 'updated' => $this->updated,