| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | abstract class AbstractMergeSourceDetector |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Weight. |
||
| 19 | * |
||
| 20 | * @var integer |
||
| 21 | */ |
||
| 22 | private $_weight; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Creates detector. |
||
| 26 | * |
||
| 27 | * @param integer $weight Weight. |
||
| 28 | */ |
||
| 29 | 37 | public function __construct($weight) |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Detects merge source from repository url. |
||
| 36 | * |
||
| 37 | * @param string $repository_url Repository url. |
||
| 38 | * |
||
| 39 | * @return null|string |
||
| 40 | */ |
||
| 41 | abstract public function detect($repository_url); |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Returns relative detector weight. |
||
| 45 | * |
||
| 46 | * @return integer |
||
| 47 | */ |
||
| 48 | 4 | public function getWeight() |
|
| 54 |