1 | <?php |
||
40 | class PaystackManager extends AbstractManager |
||
41 | { |
||
42 | /** |
||
43 | * @var PaystackFactory |
||
44 | */ |
||
45 | private $factory; |
||
46 | |||
47 | /** |
||
48 | * PaystackManager constructor. |
||
49 | * |
||
50 | * @param Repository $repository |
||
51 | * @param PaystackFactory $factory |
||
52 | */ |
||
53 | public function __construct(Repository $repository, PaystackFactory $factory) |
||
58 | |||
59 | /** |
||
60 | * Create the connection instance. |
||
61 | * |
||
62 | * @param array $config |
||
63 | * |
||
64 | * @return \Xeviant\Paystack\Client |
||
65 | */ |
||
66 | protected function createConnection(array $config) |
||
70 | |||
71 | /** |
||
72 | * Get the configuration name. |
||
73 | * |
||
74 | * @return string |
||
75 | */ |
||
76 | protected function getConfigName() |
||
80 | |||
81 | /** |
||
82 | * Gets the instance of the Paystack Factory |
||
83 | * |
||
84 | * @return PaystackFactory |
||
85 | */ |
||
86 | public function getFactory() |
||
90 | |||
91 | /** |
||
92 | * {@inheritdoc} |
||
93 | */ |
||
94 | public function __call(string $method, array $parameters) |
||
104 | |||
105 | /** |
||
106 | * Gets the Legacy Paystack Object from v1 of this package |
||
107 | * |
||
108 | * @return Paystack |
||
109 | */ |
||
110 | protected function getLegacyObject() |
||
114 | } |
||
115 |