Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update PHP samples #807

Merged
merged 1 commit into from
Jul 6, 2022
Merged
Show file tree
Hide file tree
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
3 changes: 2 additions & 1 deletion msgraph-mail/php/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
vendor/
index.php
index.php
composer.lock
14 changes: 6 additions & 8 deletions msgraph-mail/php/composer.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{
"name": "ss/ss",
"repositories": [
{
"type": "path",
"url": "../../../kiota-testing/kiota/abstractions/php"
}
],
"name": "microsoft/kiota-samples",
"require": {
"microsoft/kiota-abstractions": "dev-feat/php/http"
"microsoft/kiota-abstractions": "^0.2.0",
"microsoft/kiota-http-guzzle": "^0.2.0",
"microsoft/kiota-serialization-text": "^0.2.0",
"microsoft/kiota-serialization-json": "^0.2.0",
"microsoft/kiota-authentication-phpleague": "^0.2.0"
}
,
"require-dev": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use DateTime;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
Expand All @@ -25,7 +25,7 @@ class Attachment extends Entity implements Parsable
private ?DateTime $lastModifiedDateTime = null;

/**
* @var string|null $name The attachment's file name.
* @var string|null $name The display name of the attachment. This does not need to be the actual file name.
*/
private ?string $name = null;

Expand Down Expand Up @@ -90,7 +90,7 @@ public function getLastModifiedDateTime(): ?DateTime {
}

/**
* Gets the name property value. The attachment's file name.
* Gets the name property value. The display name of the attachment. This does not need to be the actual file name.
* @return string|null
*/
public function getName(): ?string {
Expand Down Expand Up @@ -143,7 +143,7 @@ public function setLastModifiedDateTime(?DateTime $value ): void {
}

/**
* Sets the name property value. The attachment's file name.
* Sets the name property value. The display name of the attachment. This does not need to be the actual file name.
* @param string|null $value Value to set for the name property.
*/
public function setName(?string $value ): void {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?php

namespace Microsoft\Graph\Users\Item\Messages\Item\Attachments;
namespace Microsoft\Graph\Models;

use Microsoft\Graph\Models\Microsoft\Graph\Attachment;
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;

class AttachmentsResponse implements AdditionalDataHolder, Parsable
class AttachmentCollectionResponse implements AdditionalDataHolder, Parsable
{
/**
* @var array<string, mixed> $AdditionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
Expand All @@ -26,7 +25,7 @@ class AttachmentsResponse implements AdditionalDataHolder, Parsable
private ?array $value = null;

/**
* Instantiates a new attachmentsResponse and sets the default values.
* Instantiates a new AttachmentCollectionResponse and sets the default values.
*/
public function __construct() {
$this->additionalData = [];
Expand All @@ -35,10 +34,10 @@ public function __construct() {
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
* @return AttachmentsResponse
* @return AttachmentCollectionResponse
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): AttachmentsResponse {
return new AttachmentsResponse();
public static function createFromDiscriminatorValue(ParseNode $parseNode): AttachmentCollectionResponse {
return new AttachmentCollectionResponse();
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use Microsoft\Kiota\Abstractions\Enum;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
Expand All @@ -15,12 +15,12 @@ class DateTimeTimeZone implements AdditionalDataHolder, Parsable
private array $additionalData;

/**
* @var string|null $dateTime A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).
* @var string|null $dateTime A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'.
*/
private ?string $dateTime = null;

/**
* @var string|null $timeZone Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values.
* @var string|null $timeZone Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values.
*/
private ?string $timeZone = null;

Expand Down Expand Up @@ -49,7 +49,7 @@ public function getAdditionalData(): array {
}

/**
* Gets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).
* Gets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'.
* @return string|null
*/
public function getDateTime(): ?string {
Expand All @@ -69,7 +69,7 @@ public function getFieldDeserializers(): array {
}

/**
* Gets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values.
* Gets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values.
* @return string|null
*/
public function getTimeZone(): ?string {
Expand All @@ -95,15 +95,15 @@ public function setAdditionalData(?array $value ): void {
}

/**
* Sets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).
* Sets the dateTime property value. A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'.
* @param string|null $value Value to set for the dateTime property.
*/
public function setDateTime(?string $value ): void {
$this->dateTime = $value;
}

/**
* Sets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for more possible values.
* Sets the timeZone property value. Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values.
* @param string|null $value Value to set for the timeZone property.
*/
public function setTimeZone(?string $value ): void {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
Expand All @@ -15,12 +15,12 @@ class EmailAddress implements AdditionalDataHolder, Parsable
private array $additionalData;

/**
* @var string|null $address The email address of the person or entity.
* @var string|null $address The email address of an entity instance.
*/
private ?string $address = null;

/**
* @var string|null $name The display name of the person or entity.
* @var string|null $name The display name of an entity instance.
*/
private ?string $name = null;

Expand Down Expand Up @@ -49,7 +49,7 @@ public function getAdditionalData(): array {
}

/**
* Gets the address property value. The email address of the person or entity.
* Gets the address property value. The email address of an entity instance.
* @return string|null
*/
public function getAddress(): ?string {
Expand All @@ -69,7 +69,7 @@ public function getFieldDeserializers(): array {
}

/**
* Gets the name property value. The display name of the person or entity.
* Gets the name property value. The display name of an entity instance.
* @return string|null
*/
public function getName(): ?string {
Expand All @@ -95,15 +95,15 @@ public function setAdditionalData(?array $value ): void {
}

/**
* Sets the address property value. The email address of the person or entity.
* Sets the address property value. The email address of an entity instance.
* @param string|null $value Value to set for the address property.
*/
public function setAddress(?string $value ): void {
$this->address = $value;
}

/**
* Sets the name property value. The display name of the person or entity.
* Sets the name property value. The display name of an entity instance.
* @param string|null $value Value to set for the name property.
*/
public function setName(?string $value ): void {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
Expand All @@ -15,7 +15,7 @@ class Entity implements AdditionalDataHolder, Parsable
private array $additionalData;

/**
* @var string|null $id Read-only.
* @var string|null $id The id property
*/
private ?string $id = null;

Expand Down Expand Up @@ -55,7 +55,7 @@ public function getFieldDeserializers(): array {
}

/**
* Gets the id property value. Read-only.
* Gets the id property value. The id property
* @return string|null
*/
public function getId(): ?string {
Expand All @@ -80,7 +80,7 @@ public function setAdditionalData(?array $value ): void {
}

/**
* Sets the id property value. Read-only.
* Sets the id property value. The id property
* @param string|null $value Value to set for the id property.
*/
public function setId(?string $value ): void {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?php

namespace Microsoft\Graph\Users\Item\Messages\Item\Extensions;
namespace Microsoft\Graph\Models;

use Microsoft\Graph\Models\Microsoft\Graph\Extension;
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;

class ExtensionsResponse implements AdditionalDataHolder, Parsable
class ExtensionCollectionResponse implements AdditionalDataHolder, Parsable
{
/**
* @var array<string, mixed> $AdditionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
Expand All @@ -26,7 +25,7 @@ class ExtensionsResponse implements AdditionalDataHolder, Parsable
private ?array $value = null;

/**
* Instantiates a new extensionsResponse and sets the default values.
* Instantiates a new ExtensionCollectionResponse and sets the default values.
*/
public function __construct() {
$this->additionalData = [];
Expand All @@ -35,10 +34,10 @@ public function __construct() {
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
* @return ExtensionsResponse
* @return ExtensionCollectionResponse
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): ExtensionsResponse {
return new ExtensionsResponse();
public static function createFromDiscriminatorValue(ParseNode $parseNode): ExtensionCollectionResponse {
return new ExtensionCollectionResponse();
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use Microsoft\Kiota\Abstractions\Enum;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use Microsoft\Kiota\Abstractions\Enum;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?php

namespace Microsoft\Graph\Users\Item\InferenceClassification\Overrides;
namespace Microsoft\Graph\Models;

use Microsoft\Graph\Models\Microsoft\Graph\InferenceClassificationOverride;
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;

class OverridesResponse implements AdditionalDataHolder, Parsable
class InferenceClassificationOverrideCollectionResponse implements AdditionalDataHolder, Parsable
{
/**
* @var array<string, mixed> $AdditionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
Expand All @@ -26,7 +25,7 @@ class OverridesResponse implements AdditionalDataHolder, Parsable
private ?array $value = null;

/**
* Instantiates a new overridesResponse and sets the default values.
* Instantiates a new InferenceClassificationOverrideCollectionResponse and sets the default values.
*/
public function __construct() {
$this->additionalData = [];
Expand All @@ -35,10 +34,10 @@ public function __construct() {
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
* @return OverridesResponse
* @return InferenceClassificationOverrideCollectionResponse
*/
public static function createFromDiscriminatorValue(ParseNode $parseNode): OverridesResponse {
return new OverridesResponse();
public static function createFromDiscriminatorValue(ParseNode $parseNode): InferenceClassificationOverrideCollectionResponse {
return new InferenceClassificationOverrideCollectionResponse();
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Microsoft\Graph\Models\Microsoft\Graph;
namespace Microsoft\Graph\Models;

use Microsoft\Kiota\Abstractions\Enum;

Expand Down
Loading