public function getActivityType()
    {
        $categories = $this->getCategory();
        foreach($categories as $category) {
            if ($category->getScheme() == self::ACTIVITY_CATEGORY_SCHEME) {
                return $category->getTerm();
            }
        }
        return null;
    }
public function getActivityType()
    {
        $categories = $this->getCategory();
        foreach($categories as $category) {
            if ($category->getScheme() == self::ACTIVITY_CATEGORY_SCHEME) {
                return $category->getTerm();
            }
        }
        return null;
    }
public function getActivityType ( ) { $ categories = $ this -> getCategory ( ) ; foreach ( $ categories as $ category ) { if ( $ category -> getScheme ( ) == self :: ACTIVITY_CATEGORY_SCHEME ) { return $ category -> getTerm ( ) ; } } return null ; }
Return the activity type that was performed.

Convenience method that inspects category where scheme is
http://gdata.youtube.com/schemas/2007/userevents.cat.

@return string|null The activity category if found.
Return the activity type that was performed .