ajaxUrl = (string)$ajaxUrl; $this->postParams = $postParams; } /** * @inheritDoc */ public function getType() { return self::TYPE_CONTENT_DYNAMIC; } /** * @inheritDoc */ public function getData() { return [ 'url' => $this->ajaxUrl, 'params' => $this->postParams, ]; } }