Automattic\WooCommerce\Vendor\League\Container\Argument

ClassNameWithOptionalValue::__construct()publicWC 1.0

Method of the class: ClassNameWithOptionalValue{}

No Hooks.

Return

null. Nothing (null).

Usage

$ClassNameWithOptionalValue = new ClassNameWithOptionalValue();
$ClassNameWithOptionalValue->__construct( $className, $optionalValue );
$className(string) (required)
-
$optionalValue(mixed) (required)
-

ClassNameWithOptionalValue::__construct() code WC 8.9.0

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