src/Services/PDOs/Schemas/Schema.php
protected function extractTypeHintFromComment($comment)
    {
        if (empty($comment)) {
            return [null, null];
        }

        if (!preg_match('(\(DC2Type:(\w+)\))', $comment, $match)) {
            return [null, $comment];
        }

        $type    = $match[1];
        $comment = trim(str_replace('(DC2Type:' . $type . ')', '', $comment));

        if ($comment == '') {
            $comment = null;
        }

        return [$type, $comment];
    }
protected function extractTypeHintFromComment($comment)
    {
        if (empty($comment)) {
            return [null, null];
        }

        if (!preg_match('(\(DC2Type:(\w+)\))', $comment, $match)) {
            return [null, $comment];
        }

        $type    = $match[1];
        $comment = trim(str_replace('(DC2Type:' . $type . ')', '', $comment));

        if ($comment == '') {
            $comment = null;
        }

        return [$type, $comment];
    }
protected function extractTypeHintFromComment ( $ comment ) { if ( empty ( $ comment ) ) { return [ null , null ] ; } if ( ! preg_match ( '(\(DC2Type:(\w+)\))' , $ comment , $ match ) ) { return [ null , $ comment ] ; } $ type = $ match [ 1 ] ; $ comment = trim ( str_replace ( '(DC2Type:' . $ type . ')' , '' , $ comment ) ) ; if ( $ comment == '' ) { $ comment = null ; } return [ $ type , $ comment ] ; }
Split a type-hint for Database Access Layer from comment.

The type-hint is compatible with Doctrine 2.

@param string $comment
@return array
Split a type - hint for Database Access Layer from comment .