Automattic\WooCommerce\Vendor\League\Container\Argument

ClassNameWithOptionalValue::__constructpublicWC 1.0

Метод класса: ClassNameWithOptionalValue{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ClassNameWithOptionalValue = new ClassNameWithOptionalValue();
$ClassNameWithOptionalValue->__construct( $className, $optionalValue );
$className(строка) (обязательный)
.
$optionalValue(разное) (обязательный)
.

Код ClassNameWithOptionalValue::__construct() WC 9.9.5

public function __construct(string $className, $optionalValue)
{
    $this->className = $className;
    $this->optionalValue = $optionalValue;
}