protected function getCategory(Document $document) 
	{
		$obj = new CategoriesToRender();
		$categories = $obj($document, true, true);
		$firstCategory = reset($categories);
		
		return $firstCategory;
	}
protected function getCategory(Document $document) 
	{
		$obj = new CategoriesToRender();
		$categories = $obj($document, true, true);
		$firstCategory = reset($categories);
		
		return $firstCategory;
	}
protected function getCategory ( Document $ document ) { $ obj = new CategoriesToRender ( ) ; $ categories = $ obj ( $ document , true , true ) ; $ firstCategory = reset ( $ categories ) ; return $ firstCategory ; }
The first category as slug

@param Document $document
@return mixed
The first category as slug