src/PServerPanel/Mapper/HydratorVote.php
public function hydrate(array $data, $object)
    {
        if (!$object instanceof VoteSites) {
            throw new Exception('$object must be an instance of VoteSites');
        }

        return parent::hydrate($data, $object);
    }
public function hydrate(array $data, $object)
    {
        if (!$object instanceof VoteSites) {
            throw new Exception('$object must be an instance of VoteSites');
        }

        return parent::hydrate($data, $object);
    }
Hydrate $object with the provided $data.

@param  array $data
@param  object $object

@return VoteSites
@throws Exception