Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
| Total | |
0.00% |
0 / 1 |
|
50.00% |
1 / 2 |
CRAP | |
75.00% |
3 / 4 |
| MigrateSkipRowException | |
0.00% |
0 / 1 |
|
50.00% |
1 / 2 |
2.06 | |
75.00% |
3 / 4 |
| __construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
3 / 3 |
|||
| getSaveToMap | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
|||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\migrate\MigrateSkipRowException. | |
| */ | |
| namespace Drupal\migrate; | |
| /** | |
| * This exception is thrown when a row should be skipped. | |
| */ | |
| class MigrateSkipRowException extends \Exception { | |
| /** | |
| * Whether to record the skip in the map table, or skip silently. | |
| * | |
| * @var bool | |
| * TRUE to record as STATUS_IGNORED in the map, FALSE to skip silently. | |
| */ | |
| protected $saveToMap; | |
| /** | |
| * Constructs a MigrateSkipRowException object. | |
| * | |
| * @param string $message | |
| * The message for the exception. | |
| * @param bool $save_to_map | |
| * TRUE to record as STATUS_IGNORED in the map, FALSE to skip silently. | |
| */ | |
| public function __construct($message = NULL, $save_to_map = TRUE) { | |
| parent::__construct($message); | |
| $this->saveToMap = $save_to_map; | |
| } | |
| /** | |
| * Whether the thrower wants to record this skip in the map table. | |
| * | |
| * @return bool | |
| * TRUE to record as STATUS_IGNORED in the map, FALSE to skip silently. | |
| */ | |
| public function getSaveToMap() { | |
| return $this->saveToMap; | |
| } | |
| } |