src/package/Version.php
protected function instantiateClass(
        $instance,
        $property,
        $class = null,
        $arguments = []
    ) {
        return $this->{$property} = is_null($instance)
            ? ($instance = new $class(...$arguments))
            : $instance;
    }
protected function instantiateClass(
        $instance,
        $property,
        $class = null,
        $arguments = []
    ) {
        return $this->{$property} = is_null($instance)
            ? ($instance = new $class(...$arguments))
            : $instance;
    }
protected function instantiateClass ( $ instance , $ property , $ class = null , $ arguments = [ ] ) { return $ this -> { $ property } = is_null ( $ instance ) ? ( $ instance = new $ class ( ... $ arguments ) ) : $ instance ; }
Instantiate a class.

@param $instance  object
@param $property  string
@param $class     string

@return Yaml|object
Instantiate a class .