repo/rest-api/src/Application/UseCases/PatchProperty/PatchProperty.php
Method execute
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function execute( PatchPropertyRequest $request ): PatchPropertyResponse {
$deserializedRequest = $this->validator->validateAndDeserialize( $request );
$propertyId = $deserializedRequest->getPropertyId();
$providedMetadata = $deserializedRequest->getEditMetadata();
Method __construct
has 9 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
PatchPropertyValidator $validator,
AssertPropertyExists $assertPropertyExists,
AssertUserIsAuthorized $assertUserIsAuthorized,
PropertyRetriever $propertyRetriever,
PropertySerializer $propertySerializer,