Automattic\WooCommerce\Vendor\League\Container\Inflector
Inflector::inflect()
{@inheritdoc}
Метод класса: Inflector{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Inflector = new Inflector(); $Inflector->inflect( $object );
- $object (обязательный)
- -
Код Inflector::inflect() Inflector::inflect WC 9.5.1
public function inflect($object) { $properties = $this->resolveArguments(array_values($this->properties)); $properties = array_combine(array_keys($this->properties), $properties); // array_combine() can technically return false foreach ($properties ?: [] as $property => $value) { $object->{$property} = $value; } foreach ($this->methods as $method => $args) { $args = $this->resolveArguments($args); /** @var callable $callable */ $callable = [$object, $method]; call_user_func_array($callable, $args); } if ($this->callback !== null) { call_user_func($this->callback, $object); } }