1 | <?php |
||
27 | abstract class AbstractPurchase extends \hipanel\base\Model |
||
28 | { |
||
29 | use \hipanel\base\ModelTrait; |
||
30 | |||
31 | /** |
||
32 | * @var AbstractCartPosition |
||
33 | */ |
||
34 | public $position; |
||
35 | |||
36 | /** |
||
37 | * @var array result of purchase execution |
||
38 | */ |
||
39 | protected $_result; |
||
40 | |||
41 | public function getResult() |
||
45 | |||
46 | /** {@inheritdoc} */ |
||
47 | public static function tableName() |
||
51 | |||
52 | /** |
||
53 | * @throws InvalidConfigException |
||
54 | * @internal param string $ operation to be performed, e.g.: Renew, Transfer, Registration |
||
55 | */ |
||
56 | public static function operation() |
||
60 | |||
61 | /** {@inheritdoc} */ |
||
62 | public function init() |
||
69 | |||
70 | /** |
||
71 | * Executes the purchase. |
||
72 | * Calls proper API commands to purchase the product. |
||
73 | * @throws ErrorPurchaseException in case of failed purchase |
||
74 | * @return true if the item was purchased successfully |
||
75 | */ |
||
76 | public function execute() |
||
86 | |||
87 | public function renderNotes() |
||
91 | |||
92 | /** {@inheritdoc} */ |
||
93 | public function rules() |
||
100 | |||
101 | /** |
||
102 | * @return string[] |
||
103 | */ |
||
104 | public function getPurchasabilityRules() |
||
108 | } |
||
109 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..