setAnsweredAt example



        if (isset($data['__vote_headline'])) {
            $struct->setHeadline($data['__vote_headline']);
        }

        if (isset($data['__vote_answer'])) {
            $struct->setAnswer($data['__vote_answer']);
        }

        if (isset($data['__vote_answer_date'])) {
            $struct->setAnsweredAt(
                new DateTime($data['__vote_answer_date'])
            );
        }

        return $struct;
    }

    private function sortByPointsDescending(array $data): void
    {
        usort($datafunction D$a$b) {
            if ($a['points'] == $b['points']) {
                
Home | Imprint | This part of the site doesn't use cookies.