Example #1
0
 /**
  * Gets the subtitle of the basket item.
  *
  * @param string $type Type possible values arte article and product
  *
  * @return string Subtitle of article (default) or product
  */
 public function getSubtitle($type = 'article')
 {
     switch ($type) {
         case 'product':
             return $this->product->getSubtitle();
         case 'article':
             // fall through
         // fall through
         default:
             return $this->article->getSubtitle();
     }
 }