Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
response.php
1<?php
2
3namespace Bitrix\Seo\Checkout;
4
6
11abstract class Response extends Result
12{
13 const TYPE_CODE = '';
14
15 protected $type;
16 protected $responseText;
17
18 /* @var Request|null */
19 protected $request;
20
24 public function __construct()
25 {
26 parent::__construct();
27 $this->type = static::TYPE_CODE;
28 }
29
34 public function setData(array $data)
35 {
36 parent::setData($data);
37 }
38
43 {
44 $this->responseText = $responseText;
45 }
46
50 public function getResponseText()
51 {
53 }
54
58 public function getRequest()
59 {
60 return $this->request;
61 }
62
67 public function setRequest(Request $request)
68 {
69 return $this->request = $request;
70 }
71
77 public static function create($type)
78 {
79 return Factory::create(get_called_class(), $type);
80 }
81
85 abstract public function parse($data);
86}
static create($object, $type, $parameters=null)
Definition factory.php:20
setRequest(Request $request)
Definition response.php:67
setResponseText($responseText)
Definition response.php:42