public function setId($id) { if (!self::isValidId($id)) { throw new Exception('Invalid paste ID.', 60); } $this->_id = $id; }