public function possessiveNoune($story, $actor)
    {
        if (is_array($actor) || empty($actor)) {
            $value = AnTranslator::_('LIB-AN-THEIR');
        } else {
            if ($actor->eql($story->subject)) {
                $value = AnTranslator::_(AnService::get('com:actors.template.helper')->noune($actor, array('type' => 'possessive')));
            } elseif ($actor->eql(get_viewer())) {
                $value = AnTranslator::_('LIB-AN-YOUR');
            } else {
                $value = sprintf(AnTranslator::_('LIB-AN-THIRD-PERSON\'S'), $this->actorName($actor));
            }
        }

        return $value;
    }
public function possessiveNoune($story, $actor)
    {
        if (is_array($actor) || empty($actor)) {
            $value = AnTranslator::_('LIB-AN-THEIR');
        } else {
            if ($actor->eql($story->subject)) {
                $value = AnTranslator::_(AnService::get('com:actors.template.helper')->noune($actor, array('type' => 'possessive')));
            } elseif ($actor->eql(get_viewer())) {
                $value = AnTranslator::_('LIB-AN-YOUR');
            } else {
                $value = sprintf(AnTranslator::_('LIB-AN-THIRD-PERSON\'S'), $this->actorName($actor));
            }
        }

        return $value;
    }
public function possessiveNoune ( $ story , $ actor ) { if ( is_array ( $ actor ) || empty ( $ actor ) ) { $ value = AnTranslator :: _ ( 'LIB-AN-THEIR' ) ; } else { if ( $ actor -> eql ( $ story -> subject ) ) { $ value = AnTranslator :: _ ( AnService :: get ( 'com:actors.template.helper' ) -> noune ( $ actor , array ( 'type' => 'possessive' ) ) ) ; } elseif ( $ actor -> eql ( get_viewer ( ) ) ) { $ value = AnTranslator :: _ ( 'LIB-AN-YOUR' ) ; } else { $ value = sprintf ( AnTranslator :: _ ( 'LIB-AN-THIRD-PERSON\'S' ) , $ this -> actorName ( $ actor ) ) ; } } return $ value ; }
Return a possessive noune.

@param ComStoriesDomainEntityStory $story Story
@param ComActorsDomainEntityActor  $actor Actor

@return string
Return a possessive noune .