1 | <?php |
||
22 | class CheckConstraintsJob extends Job { |
||
23 | |||
24 | const COMMAND = 'constraintsRunCheck'; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $entityId; |
||
30 | |||
31 | /** |
||
32 | * @var CachingResultsSource |
||
33 | */ |
||
34 | private $resultsSource; |
||
35 | |||
36 | /** |
||
37 | * @var EntityIdParser |
||
38 | */ |
||
39 | private $entityIdParser; |
||
40 | |||
41 | /** |
||
42 | * @param Title $title |
||
43 | * @param string[] $params should contain 'entityId' => 'Q1234' |
||
44 | */ |
||
45 | public function __construct( Title $title, array $params ) { |
||
58 | |||
59 | public function setResultsSource( CachingResultsSource $resultsSource ) { |
||
62 | |||
63 | public function setEntityIdParser( EntityIdParser $parser ) { |
||
66 | |||
67 | /** |
||
68 | * @see Job::run |
||
69 | * |
||
70 | * @return bool |
||
71 | */ |
||
72 | public function run() { |
||
83 | |||
84 | private function checkConstraints( EntityId $entityId ) { |
||
92 | |||
93 | } |
||
94 |