Пример #1
0
 /**
  * Should be able to get the route prefix.
  */
 public function testRoutePrefix()
 {
     $this->assertEquals('product::', $this->productPresenter->routePrefix());
 }
Пример #2
0
 /**
  * @param ProductPresenter $product
  *
  * @return string
  */
 public function productEnquiryMail(ProductPresenter $product) : string
 {
     return 'mailto:ching@ching-shop.com?subject=' . "I would like to buy '{$product->name()}' ({$product->sku()})";
 }