@@ 55-69 (lines=15) @@ | ||
52 | } |
|
53 | } |
|
54 | ||
55 | protected function getJsonObjects(\RegexIterator $phpFiles) |
|
56 | { |
|
57 | $jsonObjects = []; |
|
58 | foreach ($phpFiles as $phpFile) { |
|
59 | $class = $this->getClassName($phpFile->getRealPath()); |
|
60 | ||
61 | if (!empty($class)) { |
|
62 | if (in_array('Commercetools\Core\Model\Common\JsonObject', class_parents($class))) { |
|
63 | $jsonObjects[] = $class; |
|
64 | } |
|
65 | } |
|
66 | } |
|
67 | ||
68 | return $jsonObjects; |
|
69 | } |
|
70 | ||
71 | protected function getCollectionObjects(\RegexIterator $phpFiles) |
|
72 | { |
|
@@ 71-85 (lines=15) @@ | ||
68 | return $jsonObjects; |
|
69 | } |
|
70 | ||
71 | protected function getCollectionObjects(\RegexIterator $phpFiles) |
|
72 | { |
|
73 | $collectionObjects = []; |
|
74 | foreach ($phpFiles as $phpFile) { |
|
75 | $class = $this->getClassName($phpFile->getRealPath()); |
|
76 | ||
77 | if (!empty($class)) { |
|
78 | if (in_array('Commercetools\Core\Model\Common\Collection', class_parents($class))) { |
|
79 | $collectionObjects[] = $class; |
|
80 | } |
|
81 | } |
|
82 | } |
|
83 | ||
84 | return $collectionObjects; |
|
85 | } |
|
86 | ||
87 | protected function getRequestObjects(\RegexIterator $phpFiles) |
|
88 | { |
|
@@ 87-101 (lines=15) @@ | ||
84 | return $collectionObjects; |
|
85 | } |
|
86 | ||
87 | protected function getRequestObjects(\RegexIterator $phpFiles) |
|
88 | { |
|
89 | $requestObjects = []; |
|
90 | foreach ($phpFiles as $phpFile) { |
|
91 | $class = $this->getClassName($phpFile->getRealPath()); |
|
92 | ||
93 | if (!empty($class)) { |
|
94 | if (in_array('Commercetools\Core\Request\AbstractApiRequest', class_parents($class))) { |
|
95 | $requestObjects[] = $class; |
|
96 | } |
|
97 | } |
|
98 | } |
|
99 | ||
100 | return $requestObjects; |
|
101 | } |
|
102 | ||
103 | protected function getClassName($fileName) |
|
104 | { |