Spot\Relation\HasMany::offsetSet PHP Метод

offsetSet() публичный Метод

public offsetSet ( $key, $value )
    public function offsetSet($key, $value)
    {
        $this->execute();
        if ($key === null) {
            return $this->result[] = $value;
        } else {
            return $this->result[$key] = $value;
        }
    }