Lines Matching refs:array
39 public function __construct(?array $params = null, ?string $lang = null, ?string $documentId = null)
57 * @param AbstractScript|array|string $data
97 public function toArray(): array
99 $array = $this->getScriptTypeArray();
102 $array['params'] = $this->_convertArrayable($this->_params);
106 $array['lang'] = $this->_lang;
109 return ['script' => $array];
113 * Returns an array with the script type as key and the script content as value.
115 abstract protected function getScriptTypeArray(): array;
117 private static function _createFromArray(array $data)
123 throw new InvalidException('Script params must be an array');