public function build($name, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null)
    {
        $class = $this->getClass($name);

        if ($class) {
            return new $class($arg1, $arg2, $arg3, $arg4);
        }

        return null;
    }
public function build($name, $arg1 = null, $arg2 = null, $arg3 = null, $arg4 = null)
    {
        $class = $this->getClass($name);

        if ($class) {
            return new $class($arg1, $arg2, $arg3, $arg4);
        }

        return null;
    }
public function build ( $ name , $ arg1 = null , $ arg2 = null , $ arg3 = null , $ arg4 = null ) { $ class = $ this -> getClass ( $ name ) ; if ( $ class ) { return new $ class ( $ arg1 , $ arg2 , $ arg3 , $ arg4 ) ; } return null ; }
Create an instance of some class
Create an instance of some class