code: public function extract($object)
      {
          if (!$object instanceof VoteSites) {
              throw new Exception('$object must be an instance of VoteSites');
          }
          /* @var $object VoteSites */
          $data = parent::extract($object);
  
          return $data;
      }
docs: Extract values from an object
  
  @param  object $object
  
  @return array
  @throws Exception