Exemple #1
0
 public function load($data)
 {
     if (!empty($data)) {
         $product = new Product();
         $product->setPropertiesFromArray($data);
     }
     return $product instanceof Product ? $product : false;
 }