Cake\Database\Expression\ValuesExpression::values PHP Method

values() public method

Sets the values to be inserted. If no params are passed, then it returns the currently stored values
public values ( array | null $values = null ) : array | $this
$values array | null arrays with values to be inserted
return array | $this
    public function values($values = null)
    {
        if ($values === null) {
            if (!$this->_castedExpressions) {
                $this->_processExpressions();
            }
            return $this->_values;
        }
        $this->_values = $values;
        $this->_castedExpressions = false;
        return $this;
    }