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