diff --git a/src/Response/Directives/Alexa/Presentation/APLA/Document/APLA.php b/src/Response/Directives/Alexa/Presentation/APLA/Document/APLA.php index f074690..b7c6499 100644 --- a/src/Response/Directives/Alexa/Presentation/APLA/Document/APLA.php +++ b/src/Response/Directives/Alexa/Presentation/APLA/Document/APLA.php @@ -1,9 +1,25 @@ + * @license http://opensource.org/licenses/MIT The MIT License (MIT) + * @link https://github.com/phoice/phlexa + * @link https://www.phoice.tech/ + * @link https://www.travello.audio/ + */ + +declare(strict_types=1); namespace Phlexa\Response\Directives\Alexa\Presentation\APLA\Document; use Phlexa\Response\Directives\DirectivesInterface; +/** + * Class APLA + * + * @package Phlexa\Response\Directives\Alexa\Presentation\APLA\Document + */ class APLA implements DirectivesInterface { /** Type of directive */ @@ -11,18 +27,14 @@ class APLA implements DirectivesInterface /** @var string */ private $version = '0.8'; - - /** - * @var array - */ - private $mainTemplate = []; - + /** @var array */ + private $mainTemplate = []; /** * APLA constructor. * - * @param array $mainTemplate + * @param array $mainTemplate */ public function __construct( array $mainTemplate @@ -38,16 +50,16 @@ public function __construct( public static function createFromString(string $aplaJson): APLA { $aplaData = json_decode($aplaJson, true); - + $mainTemplate = $aplaData['mainTemplate'] ?? []; return new APLA($mainTemplate); } /** - * @param string $aplFile + * @param string $aplaFile * - * @return APL + * @return APLA */ public static function createFromFile(string $aplaFile): APLA { @@ -77,5 +89,4 @@ public function toArray(): array return $data; } - -} \ No newline at end of file +} diff --git a/src/Response/Directives/Alexa/Presentation/APLA/RenderDocument.php b/src/Response/Directives/Alexa/Presentation/APLA/RenderDocument.php index 9d5d48c..512eea9 100644 --- a/src/Response/Directives/Alexa/Presentation/APLA/RenderDocument.php +++ b/src/Response/Directives/Alexa/Presentation/APLA/RenderDocument.php @@ -1,9 +1,26 @@ + * @license http://opensource.org/licenses/MIT The MIT License (MIT) + * @link https://github.com/phoice/phlexa + * @link https://www.phoice.tech/ + * @link https://www.travello.audio/ + */ + +declare(strict_types=1); + namespace Phlexa\Response\Directives\Alexa\Presentation\APLA; use Phlexa\Response\Directives\Alexa\Presentation\APLA\Document\APLA; use Phlexa\Response\Directives\DirectivesInterface; +/** + * Class RenderDocument + * + * @package Phlexa\Response\Directives\Alexa\Presentation\APLA + */ class RenderDocument implements DirectivesInterface { /** Type of directive */ @@ -21,7 +38,7 @@ class RenderDocument implements DirectivesInterface /** * RenderDocument constructor. * - * @param APLA $document + * @param APLA $document * @param string $token * @param array $datasources */ @@ -54,5 +71,4 @@ public function toArray(): array return $data; } - -} \ No newline at end of file +}