for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Composite Utils package.
*
* (c) Emily Shepherd <[email protected]>
* For the full copyright and license information, please view the
* LICENSE.md file that was distributed with this source code.
* @package spaark/composite-utils
* @author Emily Shepherd <[email protected]>
* @license MIT
*/
namespace Spaark\CompositeUtils\Model\Reflection\Type;
use Spaark\CompositeUtils\Traits\StaticEquatableTrait;
* Represents all Scalar Types, extended by more specific types
abstract class ScalarType extends NativeType
{
use StaticEquatableTrait;
* Casts given value to the datatype
* @param mixed $value
* @return mixed
abstract public function cast($value);
}