| @@ 240-255 (lines=16) @@ | ||
| 237 | ||
| 238 | protected $contentTypeHandler; |
|
| 239 | ||
| 240 | protected function getContentTypeHandler() |
|
| 241 | { |
|
| 242 | if (!isset($this->contentTypeHandler)) { |
|
| 243 | $this->contentTypeHandler = new ContentTypeHandler( |
|
| 244 | new ContentTypeGateway( |
|
| 245 | $this->getDatabaseHandler(), |
|
| 246 | $this->getDatabaseConnection(), |
|
| 247 | $this->getLanguageMaskGenerator() |
|
| 248 | ), |
|
| 249 | new ContentTypeMapper($this->getConverterRegistry()), |
|
| 250 | $this->createMock(ContentTypeUpdateHandler::class) |
|
| 251 | ); |
|
| 252 | } |
|
| 253 | ||
| 254 | return $this->contentTypeHandler; |
|
| 255 | } |
|
| 256 | ||
| 257 | protected function getConverterRegistry() |
|
| 258 | { |
|
| @@ 144-159 (lines=16) @@ | ||
| 141 | ||
| 142 | protected $contentTypeHandler; |
|
| 143 | ||
| 144 | protected function getContentTypeHandler() |
|
| 145 | { |
|
| 146 | if (!isset($this->contentTypeHandler)) { |
|
| 147 | $this->contentTypeHandler = new ContentTypeHandler( |
|
| 148 | new ContentTypeGateway( |
|
| 149 | $this->getDatabaseHandler(), |
|
| 150 | $this->getDatabaseConnection(), |
|
| 151 | $this->getLanguageMaskGenerator() |
|
| 152 | ), |
|
| 153 | new ContentTypeMapper($this->getConverterRegistry()), |
|
| 154 | $this->createMock(ContentTypeUpdateHandler::class) |
|
| 155 | ); |
|
| 156 | } |
|
| 157 | ||
| 158 | return $this->contentTypeHandler; |
|
| 159 | } |
|
| 160 | ||
| 161 | protected $fieldRegistry; |
|
| 162 | ||
| @@ 212-227 (lines=16) @@ | ||
| 209 | ||
| 210 | protected $contentTypeHandler; |
|
| 211 | ||
| 212 | protected function getContentTypeHandler() |
|
| 213 | { |
|
| 214 | if (!isset($this->contentTypeHandler)) { |
|
| 215 | $this->contentTypeHandler = new ContentTypeHandler( |
|
| 216 | new ContentTypeGateway( |
|
| 217 | $this->getDatabaseHandler(), |
|
| 218 | $this->getDatabaseConnection(), |
|
| 219 | $this->getLanguageMaskGenerator() |
|
| 220 | ), |
|
| 221 | new ContentTypeMapper($this->getConverterRegistry()), |
|
| 222 | $this->createMock(ContentTypeUpdateHandler::class) |
|
| 223 | ); |
|
| 224 | } |
|
| 225 | ||
| 226 | return $this->contentTypeHandler; |
|
| 227 | } |
|
| 228 | ||
| 229 | protected $fieldRegistry; |
|
| 230 | ||