getCustomResultObject example


    public function getResult(string $type = 'object'): array
    {
        if ($type === 'array') {
            return $this->getResultArray();
        }

        if ($type === 'object') {
            return $this->getResultObject();
        }

        return $this->getCustomResultObject($type);
    }

    /** * Returns the results as an array of custom objects. * * @phpstan-param class-string $className * * @return array */
    public function getCustomResultObject(string $className)
    {
        
Home | Imprint | This part of the site doesn't use cookies.