false, ], openapi: new Operation( tags: ['Customer'], summary: 'Get authenticated customer profile', description: 'Returns the profile of the currently authenticated customer. Requires Bearer token via the Authorize button.', responses: [ '200' => new \ApiPlatform\OpenApi\Model\Response( description: 'Authenticated customer profile', content: new \ArrayObject([ 'application/json' => [ 'example' => [ [ 'id' => '1529', 'firstName' => 'Api', 'lastName' => 'Doc', 'email' => 'john@example.com', 'phone' => null, 'gender' => null, 'dateOfBirth' => null, 'status' => '1', 'subscribedToNewsLetter' => false, 'isVerified' => '0', 'isSuspended' => '0', 'image' => null, 'password' => null, 'confirmPassword' => null, 'success' => null, 'message' => null, ], ], ], ]), ), ], ), ), ], graphQlOperations: [ new Query( name: 'read', resolver: CustomerQueryResolver::class, args: [], normalizationContext: [ 'groups' => ['query'], ], description: 'Read authenticated customer profile using Bearer token in Authorization header. Returns the authenticated customer\'s profile data.', ), ] )] class CustomerProfile { #[ApiProperty(readable: true, writable: false, identifier: true)] #[Groups(['query'])] public ?string $id = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?string $first_name = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?string $last_name = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?string $email = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?string $phone = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?string $gender = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?string $date_of_birth = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?string $status = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?bool $subscribed_to_news_letter = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?string $is_verified = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?string $is_suspended = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?string $image = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['mutation'])] public ?string $password = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['mutation'])] public ?string $confirmPassword = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?bool $success = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['query', 'mutation'])] public ?string $message = null; }