LeagueWrap\Dto\AbstractListDto::offsetSet PHP Méthode

offsetSet() public méthode

Set a value at the given offset.
public offsetSet ( mixed $offset, mixed $value )
$offset mixed
$value mixed
    public function offsetSet($offset, $value)
    {
        // just to make sure the listKey exists
        $this->getListByKey();
        if (is_null($offset)) {
            $this->info[$this->listKey][] = $value;
        } else {
            $this->info[$this->listKey][$offset] = $value;
        }
    }