예제 #1
0
 /**
  * Finds and returns list of attributes associated with selected product by it's ID.
  *
  * @param $productId int Product ID.
  * @return array List of attributes attached to selected product.
  */
 public function getAttributes($productId)
 {
     if (!isset($this->productAttributes[$productId])) {
         $this->productAttributes[$productId] = $this->service->getAttributes($productId);
     }
     return $this->productAttributes[$productId];
 }