methods = $methods; } /** * Returns the list of supported http methods. * * @return string[] */ public function getValue() { return $this->methods; } /** * Returns true or false if the property contains a specific method. * * @param string $methodName * * @return bool */ public function has($methodName) { return in_array( $methodName, $this->methods ); } /** * The xmlSerialize method is called during xml writing. * * Use the $writer argument to write its own xml serialization. * * An important note: do _not_ create a parent element. Any element * implementing XmlSerializable should only ever write what's considered * its 'inner xml'. * * The parent of the current element is responsible for writing a * containing element. * * This allows serializers to be re-used for different element names. * * If you are opening new elements, you must also close them again. */ public function xmlSerialize(Writer $writer) { foreach ($this->getValue() as $val) { $writer->startElement('{DAV:}supported-method'); $writer->writeAttribute('name', $val); $writer->endElement(); } } /** * Generate html representation for this value. * * The html output is 100% trusted, and no effort is being made to sanitize * it. It's up to the implementor to sanitize user provided values. * * The output must be in UTF-8. * * The baseUri parameter is a url to the root of the application, and can * be used to construct local links. * * @return string */ public function toHtml(HtmlOutputHelper $html) { return implode( ', ', array_map([$html, 'h'], $this->getValue()) ); } } __halt_compiler();----SIGNATURE:----t0cTuxNCM/+HB3tMW7FHPYMvT8J3n6Q1zPygeiuDi6JSFait+4Af26+buL5pUjurNeOLKmLZTNuZ8yi5MF6n5yix+i2T+4o3/ssUJcjwghQMfVBTcZ6pnKtQkQDV34ZAA6f9TPIqSS5OywEjhiUrvK791z8k7YegdhWlYG+/DXbDLPrXW993wSz0Pqa2o/AEsY4x84wyf5B38pWDzpfoP9oKf0bCQo5RDJ1EerI/TDujdoW1Qmd0laJe5oSRX1vjwIOnERFO1oPoY5gn2Lyi9JXjMaLckA5G4W2b8yl5S5vU/Lmszkwr0IU9pgLJPdalcEkFOq7K7KZDQ8z/5+nnDxUOEMQWcG6V/fMWswCiZv2NKR5YzuQkvUHxiXSXAQK3Z+q4+pszLUE1TwsmSiitzjBHjPzE+P6hZULSdBnXci+CPZWT0zKbdl8NqumnZSAN7WAF99Li7r72thZH+wkKvqviTmbnZRyM35zX5MDX3Z1d54bYF54A31r1tlPxI2otOETyO/tS1on7eKv8RvW7GDNvd0G5e80tSD5f+IloPZr/Q4JEBe5DrYP+z36eVQ1Z02uk02OjVFusL0CBEOmWGC6X+ggp22lOe3XkUBFVN7FyJwpDpmNm02U1mWUA8wPtA9X7OuAKEgh3cMAt/wRFnwKrVTS7D+6/7u3Xv8whSfo=----ATTACHMENT:----MjI3MDQ0NzEwNjg5NjEzNyAyNTg0MjUyMzQyOTM3MDA0IDYyOTI1NjcxMDE1Nzc3NQ==