11<?php
22
3+ namespace PhpImap ;
4+
35/**
4- * The PhpImap IncomingMail class
5- *
6+ * The PhpImap IncomingMail class.
7+ *
68 * @author Barbushin Sergey http://linkedin.com/in/barbushin
7- * @see https://github.com/barbushin/php-imap
9+ *
10+ * @see https://github.com/barbushin/php-imap
811 *
912 * @property string $textPlain lazy plain message body
1013 * @property string $textHtml lazy html message body
1114 */
12-
13- namespace PhpImap ;
14-
1515class IncomingMail extends IncomingMailHeader
1616{
1717 /**
@@ -36,9 +36,10 @@ public function addDataPartInfo(DataPartInfo $dataInfo, $type)
3636 /**
3737 * __get() is utilized for reading data from inaccessible (protected
3838 * or private) or non-existing properties.
39- *
39+ *
4040 * @property $name Name of the property (eg. textPlain)
41- * @return mixed Value of the property (eg. Plain text message)
41+ *
42+ * @return mixed Value of the property (eg. Plain text message)
4243 */
4344 public function __get ($ name )
4445 {
@@ -63,13 +64,15 @@ public function __get($name)
6364 /**
6465 * The method __isset() is triggered by calling isset() or empty()
6566 * on inaccessible (protected or private) or non-existing properties.
66- *
67+ *
6768 * @property $name Name of the property (eg. textPlain)
68- * @return bool True, if property is set or empty
69+ *
70+ * @return bool True, if property is set or empty
6971 */
7072 public function __isset ($ name )
7173 {
7274 self ::__get ($ name );
75+
7376 return isset ($ this ->$ name );
7477 }
7578
0 commit comments