Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Flag.php
Go to the documentation of this file.
1 <?php
13 
19 {
23  const STATE_INACTIVE = 0;
24 
28  const STATE_RUNNING = 1;
29 
33  const STATE_FINISHED = 2;
34 
38  const STATE_NOTIFIED = 3;
39 
43  const FLAG_TTL = 300;
44 
50  protected $_flagCode = 'synchronize';
51 
59  public function passError(\Exception $e)
60  {
61  $data = $this->getFlagData();
62  if (!is_array($data)) {
63  $data = [];
64  }
65  $data['has_errors'] = true;
66  $this->setFlagData($data);
67  return $this;
68  }
69 }
setFlagData($value)
Definition: Flag.php:130