Automattic\WooCommerce\Vendor\League\Container\Inflector

InflectorAggregate::inflect()publicWC 1.0

{@inheritdoc}

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

Хуков нет.

Возвращает

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

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

$InflectorAggregate = new InflectorAggregate();
$InflectorAggregate->inflect( $object );
$object (обязательный)
-

Код InflectorAggregate::inflect() WC 8.7.0

public function inflect($object)
{
    foreach ($this->getIterator() as $inflector) {
        $type = $inflector->getType();

        if (! $object instanceof $type) {
            continue;
        }

        $inflector->setLeagueContainer($this->getLeagueContainer());
        $inflector->inflect($object);
    }

    return $object;
}