<?php
namespace Magento\Catalog\Api\Data;

/**
 * Extension class for @see \Magento\Catalog\Api\Data\ProductLinkInterface
 */
class ProductLinkExtension extends \Magento\Framework\Api\AbstractSimpleObject implements ProductLinkExtensionInterface
{
    /**
     * @return float|null
     */
    public function getQty()
    {
        return $this->_get('qty');
    }

    /**
     * @param float $qty
     * @return $this
     */
    public function setQty($qty)
    {
        $this->setData('qty', $qty);
        return $this;
    }

    /**
     * @return int|null
     */
    public function getAutoAdded()
    {
        return $this->_get('auto_added');
    }

    /**
     * @param int $autoAdded
     * @return $this
     */
    public function setAutoAdded($autoAdded)
    {
        $this->setData('auto_added', $autoAdded);
        return $this;
    }
}
