ioc = $ioc; } /** * Get the type for the specified class * * @param string $class * @return string */ public function get_type( $class ) { return Helper::class_to_type( $class, '_Condition' ); } /** * Get an instance of the specified type * * @param string $type * @return mixed */ public function make( $type ) { $normalized_type = Helper::normalize_type( $type ); if ( isset( $this->ioc[ $normalized_type ] ) ) { return $this->ioc[ $normalized_type ]; } Incorrect_Syntax_Exception::raise( 'Unknown condition type "' . $type . '".' ); return null; } }