コード例 #1
0
 /**
  * Converts the passed ProductStream struct to an array structure.
  *
  * @param StoreFrontBundle\Struct\ProductStream $productStream
  * @return array
  */
 public function convertRelatedProductStreamStruct(StoreFrontBundle\Struct\ProductStream $productStream)
 {
     if (!$productStream instanceof StoreFrontBundle\Struct\ProductStream) {
         return array();
     }
     return ['id' => $productStream->getId(), 'name' => $productStream->getName(), 'description' => $productStream->getDescription(), 'type' => $productStream->getType()];
 }