Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | abstract class PackageParser |
||
18 | { |
||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $filePath; |
||
23 | |||
24 | /** |
||
25 | * @var Course |
||
26 | */ |
||
27 | protected $course; |
||
28 | |||
29 | /** |
||
30 | * @var Session|null |
||
31 | */ |
||
32 | protected $session; |
||
33 | |||
34 | /** |
||
35 | * AbstractParser constructor. |
||
36 | */ |
||
37 | protected function __construct($filePath, Course $course, ?Session $session = null) |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return mixed |
||
46 | * |
||
47 | * @throws Exception |
||
48 | */ |
||
49 | public static function create(string $packageType, string $filePath, Course $course, ?Session $session = null) |
||
60 | } |
||
61 | } |
||
62 | |||
63 | abstract public function parse(): XApiToolLaunch; |
||
64 | } |
||
65 |