| 1 | <?php |
||
| 11 | class Crawling extends Model |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string $state |
||
| 15 | */ |
||
| 16 | protected $state = null; |
||
| 17 | /** |
||
| 18 | * @var string $details |
||
| 19 | */ |
||
| 20 | protected $details = null; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | protected $mappingClasses = []; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | protected $propNameMap = [ |
||
| 31 | 'state' => 'state', |
||
| 32 | 'details' => 'details', |
||
| 33 | ]; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Crawling constructor. |
||
| 37 | * |
||
| 38 | * @param \SimpleXMLIterator $data |
||
| 39 | */ |
||
| 40 | public function __construct(\SimpleXMLIterator $data) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return string |
||
| 47 | */ |
||
| 48 | public function getState() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param $state |
||
| 55 | */ |
||
| 56 | public function setState($state) |
||
| 60 | |||
| 61 | /** |
||
| 62 | * @return string|null |
||
| 63 | */ |
||
| 64 | public function getDetails() |
||
| 68 | |||
| 69 | /** |
||
| 70 | * @param string $details |
||
| 71 | */ |
||
| 72 | public function setDetails($details) |
||
| 76 | } |
||
| 77 |