Contao\Model\Collection::__get PHP Méthode

__get() public méthode

Return an object property
public __get ( string $strKey ) : mixed | null
$strKey string The property name
Résultat mixed | null The property value or null
    public function __get($strKey)
    {
        if ($this->intIndex < 0) {
            $this->first();
        }
        if (isset($this->arrModels[$this->intIndex]->{$strKey})) {
            return $this->arrModels[$this->intIndex]->{$strKey};
        }
        return null;
    }