protected function insert($key)
    {
        if ($this->after($key) === null || $this->after($key) === '') {
            return false;
        }

        $this->differ->setRenderer(new Renderers\Insert);

        $value = $this->before($key)
                    ? $this->differ->render($this->before($key), $this->after($key))
                    : $this->after($key);

        $diff = [
            'key' => $key,
            'value' => $value,
            'type' => 'insert',
        ];

        return (object) $diff;
    }
protected function insert($key)
    {
        if ($this->after($key) === null || $this->after($key) === '') {
            return false;
        }

        $this->differ->setRenderer(new Renderers\Insert);

        $value = $this->before($key)
                    ? $this->differ->render($this->before($key), $this->after($key))
                    : $this->after($key);

        $diff = [
            'key' => $key,
            'value' => $value,
            'type' => 'insert',
        ];

        return (object) $diff;
    }
protected function insert ( $ key ) { if ( $ this -> after ( $ key ) === null || $ this -> after ( $ key ) === '' ) { return false ; } $ this -> differ -> setRenderer ( new Renderers \ Insert ) ; $ value = $ this -> before ( $ key ) ? $ this -> differ -> render ( $ this -> before ( $ key ) , $ this -> after ( $ key ) ) : $ this -> after ( $ key ) ; $ diff = [ 'key' => $ key , 'value' => $ value , 'type' => 'insert' , ] ; return ( object ) $ diff ; }
Get insert attribute object.

@param  string  $key
@return \stdClass
Get insert attribute object .