public static function parseAttributes($values)
    {
        $result = array();
        $values = trim($values, " \t\n\r\0\x0B()");
        $parts  = explode(',', $values);

        foreach ($parts as $part) {
            $kv    = explode('=', $part, 2);
            $key   = trim($kv[0]);
            $value = isset($kv[1]) ? $kv[1] : '';
            $value = trim($value, " \t\n\r\0\x0B\"");

            if (!empty($key)) {
                $result[$key] = $value;
            }
        }

        return $result;
    }
public static function parseAttributes($values)
    {
        $result = array();
        $values = trim($values, " \t\n\r\0\x0B()");
        $parts  = explode(',', $values);

        foreach ($parts as $part) {
            $kv    = explode('=', $part, 2);
            $key   = trim($kv[0]);
            $value = isset($kv[1]) ? $kv[1] : '';
            $value = trim($value, " \t\n\r\0\x0B\"");

            if (!empty($key)) {
                $result[$key] = $value;
            }
        }

        return $result;
    }
public static function parseAttributes ( $ values ) { $ result = array ( ) ; $ values = trim ( $ values , " \t\n\r\0\x0B()" ) ; $ parts = explode ( ',' , $ values ) ; foreach ( $ parts as $ part ) { $ kv = explode ( '=' , $ part , 2 ) ; $ key = trim ( $ kv [ 0 ] ) ; $ value = isset ( $ kv [ 1 ] ) ? $ kv [ 1 ] : '' ; $ value = trim ( $ value , " \t\n\r\0\x0B\"" ) ; if ( ! empty ( $ key ) ) { $ result [ $ key ] = $ value ; } } return $ result ; }
Parses the constructor values from an doctrine annotation

@param string $values
@return array
Parses the constructor values from an doctrine annotation