芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/bit-alphas-ltd.com/user/project/vendor/vonage/client-core/src/Voice/NCCO/NCCO.php
*/ protected $actions = []; /** * @return $this */ public function addAction(ActionInterface $action): self { $this->actions[] = $action; return $this; } public function fromArray(array $data): void { $factory = new NCCOFactory(); foreach ($data as $rawNCCO) { $action = $factory->build($rawNCCO); $this->addAction($action); } } /** * @return array
> */ public function jsonSerialize(): array { return $this->toArray(); } /** * @return array
> */ public function toArray(): array { $data = []; foreach ($this->actions as $action) { $data[] = $action->toNCCOArray(); } return $data; } }