Doctrine\OXM\Types\IntegerType::convertToPHPValue PHP Method

convertToPHPValue() public method

public convertToPHPValue ( $value )
    public function convertToPHPValue($value)
    {
        return null === $value ? null : (int) $value;
    }

Usage Example

Beispiel #1
0
 public function testIntegerNullConvertsToPHPValue()
 {
     $this->assertNull($this->_type->convertToPHPValue(null));
 }