| 1 | <?php |
||
| 11 | class DataRowsBuilder |
||
| 12 | { |
||
| 13 | const TABLE_HEADERS = ['FILENAME', 'STATUS']; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param Candidate $candidate |
||
| 17 | * @param boolean $skipAlreadyDeployed |
||
| 18 | * @return array|null |
||
| 19 | */ |
||
| 20 | 1 | public static function buildCandidateRow(Candidate $candidate, $skipAlreadyDeployed) |
|
| 30 | |||
| 31 | |||
| 32 | |||
| 33 | /** |
||
| 34 | * @param $status |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 1 | private static function normalizeStatus($status) |
|
| 50 | |||
| 51 | |||
| 52 | |||
| 53 | /** |
||
| 54 | * @param Candidate[] $candidates |
||
| 55 | * @param boolean $skipAlreadyDeployed |
||
| 56 | * @return array |
||
| 57 | */ |
||
| 58 | 1 | public function build(array $candidates, $skipAlreadyDeployed) |
|
| 67 | } |
||
| 68 |