WordPress at a glance
function is not described

Automattic\WooCommerce\Vendor\League\Container\Argument

ClassNameWithOptionalValue::getOptionalValue() public WC 1.0

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

No Hooks.

Return

Null. Nothing.

Usage

$ClassNameWithOptionalValue = new ClassNameWithOptionalValue();
$ClassNameWithOptionalValue->getOptionalValue();

Code of ClassNameWithOptionalValue::getOptionalValue() WC 5.0.0

<?php
public function getOptionalValue()
{
    return $this->optionalValue;
}