Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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