You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
setMethod($method);
}
/**
* Set the method for the calendar
*
* @param string $method One of the constants defined in this class
* @return $this
*/
public function setMethod($method) {
if ($method !== self::METHOD_REQUEST && $method !== self::METHOD_PUBLISH) {
throw new InvalidArgumentException('Method must be PUBLISH or REQUEST');
}
$this->setHeaderParameter('Content-Type', 'method', $method);
return $this;
}
/**
* Get the method set for this instance
*
* @return string
*/
public function getMethod() {
return $this->getHeaderParameter('Content-Type', 'method');
}
/**
* Get the default nesting level of this MIME part
*
* @return int
*/
public function getNestingLevel() {
return self::LEVEL_MIXED;
}
/**
* Create a new Instance of this class
*
* @param string !null $data The iCal data as serialized string
* @param string $method One of the constants defined in this class
* @param string|null $charset Optional charset
* @return SwiftCalendar
*/
public static function newInstance($data = null, $method = self::METHOD_REQUEST, $charset = null) {
return new self($data, $method, $charset);
}
}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: