Automattic\WooCommerce

Container::getpublicWC 1.0

Returns an instance of the specified class. See the comment about ContainerException in RuntimeContainer::get.

Method of the class: Container{}

No Hooks.

Returns

T. Object instance.

Usage

$Container = new Container();
$Container->get( $id );
$id(string) (required)
Class name.

Container::get() code WC 10.5.0

public function get( string $id ) {
	return $this->container->get( $id );
}