-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathRecipient.php
More file actions
37 lines (28 loc) · 797 Bytes
/
Copy pathRecipient.php
File metadata and controls
37 lines (28 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
namespace Hfig\MAPI\Message;
use Hfig\MAPI\Item\Recipient as RecipientItem;
use Hfig\MAPI\OLE\CompoundDocumentElement as Element;
use Hfig\MAPI\Property\PropertyStore;
use Hfig\MAPI\Property\PropertySet;
class Recipient extends RecipientItem
{
/** @var Element */
protected $obj;
/** @var PropertySet */
protected $properties;
public function __construct(Element $obj, Message $parent)
{
$this->obj = $obj;
// initialise property set
$this->properties = new PropertySet(
new PropertyStore($obj, $parent->getNameId())
);
}
public function __get($name)
{
if ($name == 'properties') {
return $this->properties;
}
return null;
}
}