private static function create($base, array $values)
    {
        $registry = new static();
        $registry->base = $base;
        $registry->fields = $values;

        return $registry;
    }
private static function create($base, array $values)
    {
        $registry = new static();
        $registry->base = $base;
        $registry->fields = $values;

        return $registry;
    }
private static function create ( $ base , array $ values ) { $ registry = new static ( ) ; $ registry -> base = $ base ; $ registry -> fields = $ values ; return $ registry ; }
Creates an instance of the class.

This function is made private because it allows overriding the $base and
the $values properties without any type checking.

@param string $base   The fully qualified name of the base field
@param array  $values The values of the fields

@return static
Creates an instance of the class .