src/Record.php
public function update(array $public, array $private = []): Record
    {
        if ($this->isEditable()) {
            $this->public = $public;
            if (count($private)) {
                $this->private = $private;
            }
            return $this;
        }
        return static::make($public, $this->isEditable(), $this->mutations, $this->private);
    }
public function update(array $public, array $private = []): Record
    {
        if ($this->isEditable()) {
            $this->public = $public;
            if (count($private)) {
                $this->private = $private;
            }
            return $this;
        }
        return static::make($public, $this->isEditable(), $this->mutations, $this->private);
    }
public function update ( array $ public , array $ private = [ ] ) : Record { if ( $ this -> isEditable ( ) ) { $ this -> public = $ public ; if ( count ( $ private ) ) { $ this -> private = $ private ; } return $ this ; } return static :: make ( $ public , $ this -> isEditable ( ) , $ this -> mutations , $ this -> private ) ; }
Update all data in Record

@param array $public
@param array $private
@return Record
Update all data in Record