repo/rest-api/src/Application/UseCases/PatchPropertyDescriptions/PatchPropertyDescriptions.php
Method execute
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( PatchPropertyDescriptionsRequest $request ): PatchPropertyDescriptionsResponse {
$deserializedRequest = $this->useCaseValidator->validateAndDeserialize( $request );
$propertyId = $deserializedRequest->getPropertyId();
$this->assertPropertyExists->execute( $propertyId );
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PatchPropertyDescriptionsValidator $useCaseValidator,
AssertPropertyExists $assertPropertyExists,
AssertUserIsAuthorized $assertUserIsAuthorized,
PropertyDescriptionsRetriever $descriptionsRetriever,
DescriptionsSerializer $descriptionsSerializer,