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 63b4817 commit 2b5b259Copy full SHA for 2b5b259
src/PhpImap/IncomingMail.php
@@ -49,6 +49,16 @@ public function __get($name)
49
return $this->$name;
50
}
51
52
+ /**
53
+ * The method __isset() is triggered by calling isset() or empty()
54
+ * on inaccessible (protected or private) or non-existing properties.
55
+ */
56
+ public function __isset($name)
57
+ {
58
+ self::__get($name);
59
+ return isset($this->$name);
60
+ }
61
+
62
public function addAttachment(IncomingMailAttachment $attachment)
63
{
64
$this->attachments[$attachment->id] = $attachment;
0 commit comments