public function closesParent(TemplateInspector $parent)
	{
		// Test whether any of this template's root nodes closes any of given template's leaf nodes
		foreach ($this->rootNodes as $rootNode)
		{
			foreach ($parent->leafNodes as $leafNode)
			{
				if (ElementInspector::closesParent($rootNode, $leafNode))
				{
					return true;
				}
			}
		}

		return false;
	}
public function closesParent(TemplateInspector $parent)
	{
		// Test whether any of this template's root nodes closes any of given template's leaf nodes
		foreach ($this->rootNodes as $rootNode)
		{
			foreach ($parent->leafNodes as $leafNode)
			{
				if (ElementInspector::closesParent($rootNode, $leafNode))
				{
					return true;
				}
			}
		}

		return false;
	}
public function closesParent ( TemplateInspector $ parent ) { // Test whether any of this template's root nodes closes any of given template's leaf nodes foreach ( $ this -> rootNodes as $ rootNode ) { foreach ( $ parent -> leafNodes as $ leafNode ) { if ( ElementInspector :: closesParent ( $ rootNode , $ leafNode ) ) { return true ; } } } return false ; }
Return whether this template automatically closes given parent template

@param  TemplateInspector $parent
@return bool
Return whether this template automatically closes given parent template