3 namespace Sabre\VObject;
8 * This class represents a parameter. A parameter is always tied to a property.
10 * DTSTART;VALUE=DATE:20101108
11 * VALUE=DATE would be the parameter name and value.
13 * @copyright Copyright (C) 2007-2012 Rooftop Solutions. All rights reserved.
14 * @author Evert Pot (http://www.rooftopsolutions.nl/)
15 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
17 class Parameter extends Node {
37 * @param string $value
39 public function __construct($name, $value = null) {
41 $this->name = strtoupper($name);
42 $this->value = $value;
47 * Turns the object back into a serialized blob.
51 public function serialize() {
53 if (is_null($this->value)) {
69 return $this->name . '=' . str_replace($src, $out, $this->value);
74 * Called when this object is being cast to a string
78 public function __toString() {