66
77use League \Bundle \OAuth2ServerBundle \Manager \ClientFilter ;
88use League \Bundle \OAuth2ServerBundle \Manager \ClientManagerInterface ;
9- use League \Bundle \OAuth2ServerBundle \Model \AbstractClient ;
9+ use League \Bundle \OAuth2ServerBundle \Model \ClientInterface ;
1010use League \Bundle \OAuth2ServerBundle \ValueObject \Grant ;
1111use League \Bundle \OAuth2ServerBundle \ValueObject \RedirectUri ;
1212use League \Bundle \OAuth2ServerBundle \ValueObject \Scope ;
@@ -100,6 +100,9 @@ private function getFindByCriteria(InputInterface $input): ClientFilter
100100 ;
101101 }
102102
103+ /**
104+ * @param array<ClientInterface> $clients
105+ */
103106 private function drawTable (InputInterface $ input , OutputInterface $ output , array $ clients ): void
104107 {
105108 $ io = new SymfonyStyle ($ input , $ output );
@@ -108,9 +111,15 @@ private function drawTable(InputInterface $input, OutputInterface $output, array
108111 $ io ->table ($ columns , $ rows );
109112 }
110113
114+ /**
115+ * @param array<ClientInterface> $clients
116+ * @param array<string> $columns
117+ *
118+ * @return array<array<string>>
119+ */
111120 private function getRows (array $ clients , array $ columns ): array
112121 {
113- return array_map (static function (AbstractClient $ client ) use ($ columns ): array {
122+ return array_map (static function (ClientInterface $ client ) use ($ columns ): array {
114123 $ values = [
115124 'name ' => $ client ->getName (),
116125 'identifier ' => $ client ->getIdentifier (),
@@ -126,6 +135,9 @@ private function getRows(array $clients, array $columns): array
126135 }, $ clients );
127136 }
128137
138+ /**
139+ * @return array<string>
140+ */
129141 private function getColumns (InputInterface $ input ): array
130142 {
131143 $ requestedColumns = $ input ->getOption ('columns ' );
0 commit comments