private function resolveCasterClassName($type) {
        foreach($this->casters as $typeNames => $casterClass) {
            $names = explode('|', $typeNames);

            if(!in_array($type, $names)) {
                continue;
            }

            return $casterClass;
        }
        
        throw CasterException::unresolvableType($type);
    }
private function resolveCasterClassName($type) {
        foreach($this->casters as $typeNames => $casterClass) {
            $names = explode('|', $typeNames);

            if(!in_array($type, $names)) {
                continue;
            }

            return $casterClass;
        }
        
        throw CasterException::unresolvableType($type);
    }
private function resolveCasterClassName ( $ type ) { foreach ( $ this -> casters as $ typeNames => $ casterClass ) { $ names = explode ( '|' , $ typeNames ) ; if ( ! in_array ( $ type , $ names ) ) { continue ; } return $ casterClass ; } throw CasterException :: unresolvableType ( $ type ) ; }
Resolve the correct caster class by defined type

@param string $type

@return string
@throws \BuildR\TestTools\Exception\CasterException
Resolve the correct caster class by defined type