for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ipag\Sdk\Model\Schema;
use Ipag\Sdk\Model\Schema\Exception\SchemaAttributeParseException;
/**
* @codeCoverageIgnore
*/
class SchemaIntegerAttribute extends SchemaAttribute
{
public function parseContextual($value)
if (is_integer($value)) {
return $value;
}
throw new SchemaAttributeParseException($this, "Provided value '$value' is not an integer");