Attachment.php
1 year ago
Attendee.php
1 year ago
AttendeeBase.php
1 year ago
AttendeeType.php
1 year ago
BodyType.php
1 year ago
Calendar.php
1 year ago
CalendarColor.php
1 year ago
DateTimeTimeZone.php
1 year ago
DayOfWeek.php
1 year ago
EmailAddress.php
1 year ago
Entity.php
1 year ago
Event.php
1 year ago
EventType.php
1 year ago
FileAttachment.php
6 months ago
FollowupFlag.php
1 year ago
FollowupFlagStatus.php
1 year ago
FreeBusyStatus.php
1 year ago
Importance.php
1 year ago
InferenceClassificationType.php
1 year ago
ItemBody.php
1 year ago
Location.php
1 year ago
Message.php
6 months ago
OnlineMeetingInfo.php
1 year ago
OnlineMeetingProviderType.php
1 year ago
OutlookGeoCoordinates.php
1 year ago
OutlookItem.php
1 year ago
PatternedRecurrence.php
1 year ago
Phone.php
1 year ago
PhoneType.php
1 year ago
PhysicalAddress.php
1 year ago
Recipient.php
1 year ago
RecurrencePattern.php
1 year ago
RecurrencePatternType.php
1 year ago
RecurrenceRange.php
1 year ago
RecurrenceRangeType.php
1 year ago
ResponseStatus.php
1 year ago
ResponseType.php
1 year ago
Sensitivity.php
1 year ago
SingleValueLegacyExtendedProperty.php
1 year ago
TimeSlot.php
1 year ago
WeekIndex.php
1 year ago
Attachment.php
177 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 4 | * |
| 5 | * Attachment File |
| 6 | * PHP version 7 |
| 7 | * |
| 8 | * @category Library |
| 9 | * @package Microsoft.Graph |
| 10 | * @copyright (c) Microsoft Corporation. All rights reserved. |
| 11 | * @license https://opensource.org/licenses/MIT MIT License |
| 12 | * @link https://graph.microsoft.com |
| 13 | */ |
| 14 | namespace Microsoft\Graph\Model; |
| 15 | |
| 16 | /** |
| 17 | * Attachment class |
| 18 | * |
| 19 | * @category Model |
| 20 | * @package Microsoft.Graph |
| 21 | * @copyright (c) Microsoft Corporation. All rights reserved. |
| 22 | * @license https://opensource.org/licenses/MIT MIT License |
| 23 | * @link https://graph.microsoft.com |
| 24 | */ |
| 25 | class Attachment extends Entity |
| 26 | { |
| 27 | /** |
| 28 | * Gets the contentType |
| 29 | * The MIME type. |
| 30 | * |
| 31 | * @return string|null The contentType |
| 32 | */ |
| 33 | public function getContentType() |
| 34 | { |
| 35 | if (array_key_exists("contentType", $this->_propDict)) { |
| 36 | return $this->_propDict["contentType"]; |
| 37 | } else { |
| 38 | return null; |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Sets the contentType |
| 44 | * The MIME type. |
| 45 | * |
| 46 | * @param string $val The contentType |
| 47 | * |
| 48 | * @return Attachment |
| 49 | */ |
| 50 | public function setContentType($val) |
| 51 | { |
| 52 | $this->_propDict["contentType"] = $val; |
| 53 | return $this; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Gets the isInline |
| 58 | * true if the attachment is an inline attachment; otherwise, false. |
| 59 | * |
| 60 | * @return bool|null The isInline |
| 61 | */ |
| 62 | public function getIsInline() |
| 63 | { |
| 64 | if (array_key_exists("isInline", $this->_propDict)) { |
| 65 | return $this->_propDict["isInline"]; |
| 66 | } else { |
| 67 | return null; |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Sets the isInline |
| 73 | * true if the attachment is an inline attachment; otherwise, false. |
| 74 | * |
| 75 | * @param bool $val The isInline |
| 76 | * |
| 77 | * @return Attachment |
| 78 | */ |
| 79 | public function setIsInline($val) |
| 80 | { |
| 81 | $this->_propDict["isInline"] = boolval($val); |
| 82 | return $this; |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Gets the lastModifiedDateTime |
| 87 | * The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
| 88 | * |
| 89 | * @return \DateTime|null The lastModifiedDateTime |
| 90 | */ |
| 91 | public function getLastModifiedDateTime() |
| 92 | { |
| 93 | if (array_key_exists("lastModifiedDateTime", $this->_propDict)) { |
| 94 | if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) { |
| 95 | return $this->_propDict["lastModifiedDateTime"]; |
| 96 | } else { |
| 97 | $this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]); |
| 98 | return $this->_propDict["lastModifiedDateTime"]; |
| 99 | } |
| 100 | } |
| 101 | return null; |
| 102 | } |
| 103 | |
| 104 | /** |
| 105 | * Sets the lastModifiedDateTime |
| 106 | * The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z |
| 107 | * |
| 108 | * @param \DateTime $val The lastModifiedDateTime |
| 109 | * |
| 110 | * @return Attachment |
| 111 | */ |
| 112 | public function setLastModifiedDateTime($val) |
| 113 | { |
| 114 | $this->_propDict["lastModifiedDateTime"] = $val; |
| 115 | return $this; |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Gets the name |
| 120 | * The attachment's file name. |
| 121 | * |
| 122 | * @return string|null The name |
| 123 | */ |
| 124 | public function getName() |
| 125 | { |
| 126 | if (array_key_exists("name", $this->_propDict)) { |
| 127 | return $this->_propDict["name"]; |
| 128 | } else { |
| 129 | return null; |
| 130 | } |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * Sets the name |
| 135 | * The attachment's file name. |
| 136 | * |
| 137 | * @param string $val The name |
| 138 | * |
| 139 | * @return Attachment |
| 140 | */ |
| 141 | public function setName($val) |
| 142 | { |
| 143 | $this->_propDict["name"] = $val; |
| 144 | return $this; |
| 145 | } |
| 146 | |
| 147 | /** |
| 148 | * Gets the size |
| 149 | * The length of the attachment in bytes. |
| 150 | * |
| 151 | * @return int|null The size |
| 152 | */ |
| 153 | public function getSize() |
| 154 | { |
| 155 | if (array_key_exists("size", $this->_propDict)) { |
| 156 | return $this->_propDict["size"]; |
| 157 | } else { |
| 158 | return null; |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * Sets the size |
| 164 | * The length of the attachment in bytes. |
| 165 | * |
| 166 | * @param int $val The size |
| 167 | * |
| 168 | * @return Attachment |
| 169 | */ |
| 170 | public function setSize($val) |
| 171 | { |
| 172 | $this->_propDict["size"] = intval($val); |
| 173 | return $this; |
| 174 | } |
| 175 | |
| 176 | } |
| 177 |