/** * Retrieve backorders status * * @return int */ public function getBackorders() { if ($this->getUseConfigBackorders()) { return $this->stockConfiguration->getBackorders($this->getStoreId()); } return (int) $this->getData(static::BACKORDERS); }