Eccube\Entity\Product::getStockMax PHP Method

getStockMax() public method

Get Stock max
public getStockMax ( ) : integer
return integer
    public function getStockMax()
    {
        $this->_calc();
        return max($this->stocks);
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function getStockMax()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getStockMax', array());
     return parent::getStockMax();
 }