Vote example

$struct->setCount($total);
        $struct->setPointCount($data);

        return $struct;
    }

    /** * @return Vote */
    public function hydrate(array $data)
    {
        $struct = new Vote();

        if (isset($data['__vote_id'])) {
            $struct->setId((int) $data['__vote_id']);
        }

        if (isset($data['__vote_name'])) {
            $struct->setName($data['__vote_name']);
        }

        if (isset($data['__vote_points'])) {
            $struct->setPoints((float) $data['__vote_points']);
        }
Home | Imprint | This part of the site doesn't use cookies.