Automattic\WooCommerce\Vendor\League\Container\Inflector
InflectorAggregate::inflect() public WC 1.0
{@inheritdoc}
{} It's a method of the class: InflectorAggregate{}
No Hooks.
Return
Null. Nothing.
Usage
$InflectorAggregate = new InflectorAggregate(); $InflectorAggregate->inflect( $object );
- $object (required)
- -
Code of InflectorAggregate::inflect() InflectorAggregate::inflect WC 5.0.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;
}