This repository has been archived on 2025-06-18. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
casino/projektdokumentation/Listings/CustomerDataController.php
Phan Huy Tran 9cb813bf41
All checks were successful
CI / Get Changed Files (pull_request) Successful in 30s
Pull Request Labeler / labeler (pull_request_target) Successful in 15s
CI / Backend Tests (pull_request) Has been skipped
Label PRs based on size / Check PR size (pull_request) Successful in 29s
CI / eslint (pull_request) Has been skipped
CI / Checkstyle Main (pull_request) Has been skipped
CI / oxlint (pull_request) Has been skipped
CI / Docker frontend validation (pull_request) Has been skipped
CI / prettier (pull_request) Has been skipped
CI / Docker backend validation (pull_request) Has been skipped
CI / test-build (pull_request) Has been skipped
CI / Playwright (pull_request) Has been skipped
Claude PR Review / claude-code (pull_request) Successful in 1m42s
docs: add docs
2025-06-11 12:24:18 +02:00

28 lines
741 B
PHP

<?php declare(strict_types=1);
namespace Neusta\IntexCustomer\Controller;
use Neusta\IntexClient\Connection\Model\CustomerConnection;
class CustomerDataController
{
/**
* @var CustomerConnection
*/
private $connection;
public function __construct(\Neusta\IntexClient\Connection\Factory $connectionFactory, \Neusta\IntexCustomer\Handler\DataHandler $dataHandler)
{
$this->connection = $connectionFactory->create('customer');
$this->customerDataHandler = $dataHandler;
}
public function getCustomerData(): void
{
$customerData = $this->connection->loadCustomerData();
$this->customerDataHandler->saveCustomerData($customerData);
}
}