protected function getCustomType($type)
    {
        $root = $this;
        while ($cur = $root->getParent()) {
            $root = $cur;
        }
        $customTypes = $root->getSchema()->getCustomTypes();
        $type = ltrim($type, '&');

        if (isset($customTypes[$type])) {
            return $customTypes[$type];
        }

        throw new Exception("Unable to resolve '$type' to a custom type-definition.");
    }
protected function getCustomType($type)
    {
        $root = $this;
        while ($cur = $root->getParent()) {
            $root = $cur;
        }
        $customTypes = $root->getSchema()->getCustomTypes();
        $type = ltrim($type, '&');

        if (isset($customTypes[$type])) {
            return $customTypes[$type];
        }

        throw new Exception("Unable to resolve '$type' to a custom type-definition.");
    }
protected function getCustomType ( $ type ) { $ root = $ this ; while ( $ cur = $ root -> getParent ( ) ) { $ root = $ cur ; } $ customTypes = $ root -> getSchema ( ) -> getCustomTypes ( ) ; $ type = ltrim ( $ type , '&' ) ; if ( isset ( $ customTypes [ $ type ] ) ) { return $ customTypes [ $ type ] ; } throw new Exception ( "Unable to resolve '$type' to a custom type-definition." ) ; }
Retrieves a custom type definition by name, that will be used to proxy the property's validation to.

@param string $type The name/key of the type prefixed with a '&'.

@return SchemaInterface
Retrieves a custom type definition by name that will be used to proxy the property s validation to .