repo/rest-api/src/Application/UseCases/PatchPropertyLabels/PatchPropertyLabels.php
Method execute
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( PatchPropertyLabelsRequest $request ): PatchPropertyLabelsResponse {
$deserializedRequest = $this->useCaseValidator->validateAndDeserialize( $request );
$propertyId = $deserializedRequest->getPropertyId();
$this->assertPropertyExists->execute( $propertyId );
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PropertyLabelsRetriever $labelsRetriever,
LabelsSerializer $labelsSerializer,
PatchJson $patcher,
PropertyWriteModelRetriever $propertyRetriever,
PropertyUpdater $propertyUpdater,