Skip to content

Commit

Permalink
Merge pull request #353 from barbushin/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Sebbo94BY authored Jun 14, 2019
2 parents e8effbf + 6bb61e7 commit 62664de
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/PhpImap/IncomingMail.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php

namespace PhpImap;

/**
* The PhpImap IncomingMail class
*
* The PhpImap IncomingMail class.
*
* @author Barbushin Sergey http://linkedin.com/in/barbushin
* @see https://github.com/barbushin/php-imap
*
* @see https://github.com/barbushin/php-imap
*
* @property string $textPlain lazy plain message body
* @property string $textHtml lazy html message body
*/

namespace PhpImap;

class IncomingMail extends IncomingMailHeader
{
/**
Expand All @@ -36,9 +36,10 @@ public function addDataPartInfo(DataPartInfo $dataInfo, $type)
/**
* __get() is utilized for reading data from inaccessible (protected
* or private) or non-existing properties.
*
*
* @property $name Name of the property (eg. textPlain)
* @return mixed Value of the property (eg. Plain text message)
*
* @return mixed Value of the property (eg. Plain text message)
*/
public function __get($name)
{
Expand All @@ -63,13 +64,15 @@ public function __get($name)
/**
* The method __isset() is triggered by calling isset() or empty()
* on inaccessible (protected or private) or non-existing properties.
*
*
* @property $name Name of the property (eg. textPlain)
* @return bool True, if property is set or empty
*
* @return bool True, if property is set or empty
*/
public function __isset($name)
{
self::__get($name);

return isset($this->$name);
}

Expand Down

0 comments on commit 62664de

Please sign in to comment.