Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

For a new version compatible with swiftmailer 6.0. I've not found compatibility about InvalidArumentException #1

Open
freddevweb opened this issue Jul 3, 2018 · 0 comments

Comments

@freddevweb
Copy link

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); } }
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant