Eccube\Entity\Product::getStockMax PHP 메소드

getStockMax() 공개 메소드

Get Stock max
public getStockMax ( ) : integer
리턴 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();
 }