protected function getPurpose(Document $document) 
	{
		$value = '';
		foreach($document->getMetadata() as $meta) {
			if('finalita' == $meta->getKey()) {
				$value = $meta->getValue();
				break;
			}
		}
		
		return $value;
	}
protected function getPurpose(Document $document) 
	{
		$value = '';
		foreach($document->getMetadata() as $meta) {
			if('finalita' == $meta->getKey()) {
				$value = $meta->getValue();
				break;
			}
		}
		
		return $value;
	}
protected function getPurpose ( Document $ document ) { $ value = '' ; foreach ( $ document -> getMetadata ( ) as $ meta ) { if ( 'finalita' == $ meta -> getKey ( ) ) { $ value = $ meta -> getValue ( ) ; break ; } } return $ value ; }
Get the classified purpose

@param Document $document
@return string
Get the classified purpose