wp-multisite-subscriptions/inc/class-lazy-phrase.php
2025-06-15 19:45:09 +08:00

19 lines
No EOL
422 B
PHP

<?php
namespace WP_Ultimo;
class Lazy_Phrase {
private string $phrase;
private string $domain;
private string $context;
public function __construct( string $phrase, string $domain = 'default', string $context = '' ) {
$this->phrase = $phrase;
$this->domain = $domain;
$this->context = $context;
}
public function __toString() {
return \translate( $this->phrase, $this->domain );
}
}