quantity <= 0) { throw new \DomainException('Stock Amount should be more than 0.'); } $trimmed = mb_trim($reason); if ($trimmed === '') { throw new \DomainException('Reason cannot be empty.'); } } }