Advertisement
sambacar

Untitled

Jan 30th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.64 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Vesternet\Main\Block\Category;
  4.  
  5. use Magento\Catalog\Block\Product\View;
  6. use Magento\Catalog\Api\Data\ProductInterface;
  7. use Magento\Catalog\Block\Product\AwareInterface as ProductAwareInterface;
  8.  
  9. class Mailto extends View implements ProductAwareInterface
  10. {
  11.     /**
  12.      * @var ProductInterface
  13.      */
  14.     private $product;
  15.  
  16.     /**
  17.      * {@inheritdoc}
  18.      */
  19.     public function setProduct(ProductInterface $product)
  20.     {
  21.         $this->product = $product;
  22.         return $this;
  23.     }
  24.  
  25.     /**
  26.      * {@inheritdoc}
  27.      */
  28.     public function getProduct()
  29.     {
  30.         return $this->product;
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement