public function newInstance($data=null)
    {
        $class = $this->getClassName();
        $conv = $this->newConverterInstance();

        if(is_null($data))
        {
            $data = array();
        }

        if($conv instanceof IListConverter)
        {
            $data = $conv;
        }

        $o = new $class($data);
        if($conv instanceof IBaseConverter)
        {
            $o->setConverter($conv);
        }

        return $o;
    }
public function newInstance($data=null)
    {
        $class = $this->getClassName();
        $conv = $this->newConverterInstance();

        if(is_null($data))
        {
            $data = array();
        }

        if($conv instanceof IListConverter)
        {
            $data = $conv;
        }

        $o = new $class($data);
        if($conv instanceof IBaseConverter)
        {
            $o->setConverter($conv);
        }

        return $o;
    }
public function newInstance ( $ data = null ) { $ class = $ this -> getClassName ( ) ; $ conv = $ this -> newConverterInstance ( ) ; if ( is_null ( $ data ) ) { $ data = array ( ) ; } if ( $ conv instanceof IListConverter ) { $ data = $ conv ; } $ o = new $ class ( $ data ) ; if ( $ conv instanceof IBaseConverter ) { $ o -> setConverter ( $ conv ) ; } return $ o ; }
Creates new instance of current class type
Expect a subclass of \PerrysLambda\ArrayBase
@return \PerrysLambda\ArrayBase
Creates new instance of current class type Expect a subclass of \ PerrysLambda \ ArrayBase