src/PServerPanel/Mapper/HydratorVote.php
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;
    }
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;
    }
Extract values from an object

@param  object $object

@return array
@throws Exception