Xpressengine\Support\Caster::castBool PHP 메소드

castBool() 보호된 정적인 메소드

To boolean cast a value
protected static castBool ( mixed $v ) : boolean | null
$v mixed original value
리턴 boolean | null
    protected static function castBool($v)
    {
        if ($v === true || $v === 'true') {
            return true;
        } elseif ($v === false || $v === 'false') {
            return false;
        }
        return null;
    }