public function add($object)
	{
		if (is_a($object, 'Closure')) {
			return $this->closures[] = $object;
		}

		$this->validateObject($object);

		$data = $object->getSitemapData();
		$this->addRaw($data);
	}
public function add($object)
	{
		if (is_a($object, 'Closure')) {
			return $this->closures[] = $object;
		}

		$this->validateObject($object);

		$data = $object->getSitemapData();
		$this->addRaw($data);
	}
public function add ( $ object ) { if ( is_a ( $ object , 'Closure' ) ) { return $ this -> closures [ ] = $ object ; } $ this -> validateObject ( $ object ) ; $ data = $ object -> getSitemapData ( ) ; $ this -> addRaw ( $ data ) ; }
Add a SitemapAware object to the sitemap.

@param mixed $object
Add a SitemapAware object to the sitemap .