@@ 87-95 (lines=9) @@ | ||
84 | * @throws \InvalidArgumentException |
|
85 | * @return $this |
|
86 | */ |
|
87 | public function setName($name) |
|
88 | { |
|
89 | if ((!is_string($name)) && ($name !== null)) { |
|
90 | throw new \InvalidArgumentException('Property name must be a string'); |
|
91 | } |
|
92 | $this->name = $name; |
|
93 | $this->hash = null; |
|
94 | return $this; |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * Get class name for property object |
|
@@ 114-122 (lines=9) @@ | ||
111 | * @throws \InvalidArgumentException |
|
112 | * @return $this |
|
113 | */ |
|
114 | public function setClass($class) |
|
115 | { |
|
116 | if ((!is_string($class)) && ($class !== null)) { |
|
117 | throw new \InvalidArgumentException('Property class name must be a string'); |
|
118 | } |
|
119 | $this->class = $class; |
|
120 | $this->hash = null; |
|
121 | return $this; |
|
122 | } |
|
123 | ||
124 | /** |
|
125 | * Get configuration options for property object |