finished default parser
This commit is contained in:
12
src/Domain/Atoms/UnsignedIntegerAtom.php
Normal file
12
src/Domain/Atoms/UnsignedIntegerAtom.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
namespace XaiCorp\AbcParser\Domain\Atoms;
|
||||
|
||||
use Enzyme\Axiom\Atoms\IntegerAtom;
|
||||
|
||||
class UnsignedIntegerAtom extends IntegerAtom
|
||||
{
|
||||
protected function isInvalidOrFloat($value)
|
||||
{
|
||||
return parent::isInvalidOrFloat($value) || $value <= 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user