for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace BuildR\TestTools\Caster;
use BuildR\TestTools\Caster\AbstractCaster;
/**
* Cast values to integer
*
* BuildR PHP Framework
* @author Zoltán Borsos <[email protected]>
* @package TestTools
* @subpackage DataSetLoader\XML\StaticType\Caster
* @copyright Copyright 2016, Zoltán Borsos.
* @license https://github.com/BuildrPHP/Test-Tools/blob/master/LICENSE.md
* @link https://github.com/BuildrPHP/Test-Tools
*/
class IntCaster extends AbstractCaster {
* {@inheritdoc}
public function cast() {
return (int) $this->value;
}