We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b45c7c commit 0b142f4Copy full SHA for 0b142f4
src/UnderscoreBase.php
@@ -350,6 +350,23 @@ public function __call($method, $args)
350
throw new UnderscoreException("The mixin with name '$method' is not defined");
351
}
352
353
+ /**
354
+ * Facilitates the use of Higher Order Messaging.
355
+ *
356
+ * @param string $method
357
358
+ * @return self
359
+ */
360
+ public function __get($method)
361
+ {
362
+ // For now no mixins in HOM :)
363
+ if (!\method_exists($this, $method)) {
364
+ throw new UnderscoreException("The '$method' is not defined");
365
+ }
366
+
367
+ return new HigherOrderMessage($this, $method);
368
369
370
/**
371
* Get string value (JSON representation) of this instance.
372
*
0 commit comments