Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Vesternet\Main\Block\Category;
- use Magento\Catalog\Block\Product\View;
- use Magento\Catalog\Api\Data\ProductInterface;
- use Magento\Catalog\Block\Product\AwareInterface as ProductAwareInterface;
- class Mailto extends View implements ProductAwareInterface
- {
- /**
- * @var ProductInterface
- */
- private $product;
- /**
- * {@inheritdoc}
- */
- public function setProduct(ProductInterface $product)
- {
- $this->product = $product;
- return $this;
- }
- /**
- * {@inheritdoc}
- */
- public function getProduct()
- {
- return $this->product;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement