Kronolith_Resource_Group::setId PHP Méthode

setId() public méthode

Sets the current resource's id. Must not be an existing resource.
public setId ( integer $id )
$id integer The id for this resource
    public function setId($id)
    {
        if (empty($this->_id)) {
            $this->_id = $id;
        } else {
            throw new LogicException('Resource already exists. Cannot change the id.');
        }
    }