WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Vendor\League\Container\Argument

ClassNameWithOptionalValue::__construct() public WC 1.0

{} It's a method of the class: ClassNameWithOptionalValue{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of ClassNameWithOptionalValue::__construct() WC 5.6.0

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