first commit

This commit is contained in:
2023-09-12 21:41:04 +02:00
commit 3361a7f053
13284 changed files with 2116755 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
<?php
abstract class WPML_TP_API {
/** @var WPML_TP_API_Client */
protected $client;
/** @var WPML_TP_Project */
protected $project;
/** @var WPML_TP_API_Log_Interface */
protected $logger;
public function __construct( WPML_TP_API_Client $client, WPML_TP_Project $project, WPML_TP_API_Log_Interface $logger = null ) {
$this->client = $client;
$this->project = $project;
$this->logger = $logger;
}
protected function log( $action, array $params = array() ) {
if ( null !== $this->logger ) {
$this->logger->log( $action, $params );
}
}
}