public function set($key, $value, $priority = 0)
    {
        $key = $this->getScalarKey($key);

        $this->list[$key] = new \stdclass();
        $this->list[$key]->value = $value;
        $this->list[$key]->priority = (int) $priority;
        $this->list[$key]->sequence = $this->lastSequence++;

        return $this->list[$key];
    }
public function set($key, $value, $priority = 0)
    {
        $key = $this->getScalarKey($key);

        $this->list[$key] = new \stdclass();
        $this->list[$key]->value = $value;
        $this->list[$key]->priority = (int) $priority;
        $this->list[$key]->sequence = $this->lastSequence++;

        return $this->list[$key];
    }
public function set ( $ key , $ value , $ priority = 0 ) { $ key = $ this -> getScalarKey ( $ key ) ; $ this -> list [ $ key ] = new \ stdclass ( ) ; $ this -> list [ $ key ] -> value = $ value ; $ this -> list [ $ key ] -> priority = ( int ) $ priority ; $ this -> list [ $ key ] -> sequence = $ this -> lastSequence ++ ; return $ this -> list [ $ key ] ; }
Add new item to map

@param mixed $key scalar value or object to add into priority map
@param mixed $value value
@param int $priority priority

@return PriorityMap
Add new item to map