public getStockRecord ( ) : mixed | ||
Результат | mixed |
public function getStockRecord()
{
if ($this->hasStock()) {
return $this->stock;
}
$message = 'Transaction is not associated with a stock';
throw new StockNotFoundException($message);
}