Conditions | 3 |
Paths | 4 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function addFlow(string $identifier, FlowInterface $flow): self |
||
34 | { |
||
35 | $this->flows[$identifier] = $flow; |
||
36 | |||
37 | foreach ($flow->getResponseTypes() as $responseType) { |
||
38 | $this->responseTypeManager->setResponseType($responseType, $flow); |
||
39 | } |
||
40 | |||
41 | foreach ($flow->getGrantTypes() as $grantType) { |
||
42 | $this->grantTypeManager->setGrantType($grantType, $flow); |
||
43 | } |
||
44 | |||
45 | return $this; |
||
46 | } |
||
52 | } |