@@ 59-76 (lines=18) @@ | ||
56 | } |
|
57 | } |
|
58 | ||
59 | protected function getJsonObjects(\RegexIterator $phpFiles) |
|
60 | { |
|
61 | $jsonObjects = []; |
|
62 | foreach ($phpFiles as $phpFile) { |
|
63 | $class = $this->getClassName($phpFile->getRealPath()); |
|
64 | if (strpos($class, 'Core\\Helper') > 0) { |
|
65 | continue; |
|
66 | } |
|
67 | ||
68 | if (!empty($class)) { |
|
69 | if (in_array(JsonObject::class, class_parents($class))) { |
|
70 | $jsonObjects[] = $class; |
|
71 | } |
|
72 | } |
|
73 | } |
|
74 | ||
75 | return $jsonObjects; |
|
76 | } |
|
77 | ||
78 | protected function getCollectionObjects(\RegexIterator $phpFiles) |
|
79 | { |
|
@@ 78-95 (lines=18) @@ | ||
75 | return $jsonObjects; |
|
76 | } |
|
77 | ||
78 | protected function getCollectionObjects(\RegexIterator $phpFiles) |
|
79 | { |
|
80 | $collectionObjects = []; |
|
81 | foreach ($phpFiles as $phpFile) { |
|
82 | $class = $this->getClassName($phpFile->getRealPath()); |
|
83 | if (strpos($class, 'Core\\Helper') > 0) { |
|
84 | continue; |
|
85 | } |
|
86 | ||
87 | if (!empty($class)) { |
|
88 | if (in_array(Collection::class, class_parents($class))) { |
|
89 | $collectionObjects[] = $class; |
|
90 | } |
|
91 | } |
|
92 | } |
|
93 | ||
94 | return $collectionObjects; |
|
95 | } |
|
96 | ||
97 | protected function getRequestObjects(\RegexIterator $phpFiles) |
|
98 | { |
|
@@ 97-114 (lines=18) @@ | ||
94 | return $collectionObjects; |
|
95 | } |
|
96 | ||
97 | protected function getRequestObjects(\RegexIterator $phpFiles) |
|
98 | { |
|
99 | $requestObjects = []; |
|
100 | foreach ($phpFiles as $phpFile) { |
|
101 | $class = $this->getClassName($phpFile->getRealPath()); |
|
102 | if (strpos($class, 'Core\\Helper') > 0) { |
|
103 | continue; |
|
104 | } |
|
105 | ||
106 | if (!empty($class)) { |
|
107 | if (in_array(AbstractApiRequest::class, class_parents($class))) { |
|
108 | $requestObjects[] = $class; |
|
109 | } |
|
110 | } |
|
111 | } |
|
112 | ||
113 | return $requestObjects; |
|
114 | } |
|
115 | ||
116 | protected function getClassName($fileName) |
|
117 | { |