Backend::createCrudWorker()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
declare(strict_types=1);
3
4
namespace SetBased\Stratum\Backend;
5
6
/**
7
 * Semi interface for PhpStratum's backends.
8
 */
9
class Backend
10
{
11
  //--------------------------------------------------------------------------------------------------------------------
12
  /**
13
   * Creates the object that does the actual execution of the constant command for the backend.
14
   *
15
   * @param Config       $settings The settings from the PhpStratum configuration file.
16
   * @param StratumStyle $io       The output object.
17
   *
18
   * @return ConstantWorker|null
19
   */
20
  public function createConstantWorker(Config $settings, StratumStyle $io): ?ConstantWorker
21
  {
22
    unset($settings, $io);
23
24
    return null;
25
  }
26
27
  //--------------------------------------------------------------------------------------------------------------------
28
  /**
29
   * Creates the object that does the actual execution of the CRUD command for the backend.
30
   *
31
   * @param Config       $settings The settings from the PhpStratum configuration file.
32
   * @param StratumStyle $io       The output decorator.
33
   *
34
   * @return CrudWorker|null
35
   */
36
  public function createCrudWorker(Config $settings, StratumStyle $io): ?CrudWorker
37
  {
38
    unset($settings, $io);
39
40
    return null;
41
  }
42
43
  //--------------------------------------------------------------------------------------------------------------------
44
  /**
45
   * Creates the object that does the actual execution of the routine loader command for the backend.
46
   *
47
   * @param Config       $settings The settings from the PhpStratum configuration file.
48
   * @param StratumStyle $io       The output decorator.
49
   *
50
   * @return RoutineLoaderWorker|null
51
   */
52
  public function createRoutineLoaderWorker(Config $settings, StratumStyle $io): ?RoutineLoaderWorker
53
  {
54
    unset($settings, $io);
55
56
    return null;
57
  }
58
59
  //--------------------------------------------------------------------------------------------------------------------
60
  /**
61
   * Creates the object that does the actual execution of the routine wrapper generator command for the backend.
62
   *
63
   * @param Config       $settings The settings from the PhpStratum configuration file.
64
   * @param StratumStyle $io       The output decorator.
65
   *
66
   * @return RoutineWrapperGeneratorWorker|null
67
   */
68
  public function createRoutineWrapperGeneratorWorker(Config $settings,
69
                                                      StratumStyle $io): ?RoutineWrapperGeneratorWorker
70
  {
71
    unset($settings, $io);
72
73
    return null;
74
  }
75
76
  //--------------------------------------------------------------------------------------------------------------------
77
}
78
79
//----------------------------------------------------------------------------------------------------------------------
80