-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?php | ||
|
||
namespace DaDaDev\AmazonAlexa\Responses\Directive\DialogDelegate; | ||
|
||
use DaDaDev\AmazonAlexa\Requests\RequestTypes\IntentElements\Intent; | ||
use DaDaDev\AmazonAlexa\Requests\RequestTypes\IntentElements\Slot; | ||
|
||
class UpdatedIntent extends Intent | ||
{ | ||
/** | ||
* @param string|null $name | ||
* @return $this | ||
*/ | ||
public function setName(?string $name): self | ||
{ | ||
$this->name = $name; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @param string|null $confirmationStatus | ||
* @return $this | ||
*/ | ||
public function setConfirmationStatus(?string $confirmationStatus): self | ||
{ | ||
$this->confirmationStatus = $confirmationStatus; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @param Slot[]|null $slots | ||
* @return $this | ||
*/ | ||
public function setSlots(?array $slots): self | ||
{ | ||
$this->slots = $slots; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @param string $slotName | ||
* @param Slot $slot | ||
* | ||
* @return $this | ||
*/ | ||
public function setSlot(string $slotName, Slot $slot): self | ||
{ | ||
$this->slots[$slotName] = $slot; | ||
|
||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
|
||
namespace DaDaDev\AmazonAlexa\Responses\Directive; | ||
|
||
use DaDaDev\AmazonAlexa\Responses\Directive\DialogDelegate\UpdatedIntent; | ||
use JMS\Serializer\Annotation as JMS; | ||
|
||
class DialogDelegateDirective extends AbstractDirective | ||
{ | ||
/** | ||
* @var UpdatedIntent|null | ||
* @JMS\Type("DaDaDev\AmazonAlexa\Responses\Directive\DialogDelegate\UpdatedIntent") | ||
* @JMS\SerializedName("updatedIntent") | ||
*/ | ||
protected $updatedIntent; | ||
|
||
public function __construct() | ||
{ | ||
$this->setType(self::TYPE_DIALOG_DELEGATE); | ||
} | ||
|
||
/** | ||
* @return UpdatedIntent|null | ||
*/ | ||
public function getUpdatedIntent(): ?UpdatedIntent | ||
{ | ||
return $this->updatedIntent; | ||
} | ||
|
||
/** | ||
* @param UpdatedIntent|null $updatedIntent | ||
* @return $this | ||
*/ | ||
public function setUpdatedIntent(?UpdatedIntent $updatedIntent): self | ||
{ | ||
$this->updatedIntent = $updatedIntent; | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters