| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
Methods with many parameters are not only hard to understand, but their parameters also often become inconsistent when you need more, or different data.
There are several approaches to avoid long parameter lists:
| 1 | <?php |
||
| 20 | public function __construct(string $code, string $scope, string $clientIdentifier, string $resourceOwnerIdentifier, |
||
| 21 | \DateTimeInterface $expiresAt, ?string $requestedScope = null, ?string $redirectUri = null, |
||
| 22 | ?string $idToken = null) |
||
| 23 | { |
||
| 24 | parent::__construct($code, $scope, $clientIdentifier, $resourceOwnerIdentifier, |
||
| 25 | $expiresAt, $requestedScope, $redirectUri); |
||
| 26 | $this->idToken = $idToken; |
||
| 27 | } |
||
| 41 | } |
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.