yii\db\ActiveRecordInterface::getAttribute PHP Méthode

getAttribute() public méthode

If this record is the result of a query and the attribute is not loaded, null will be returned.
See also: hasAttribute()
public getAttribute ( string $name ) : mixed
$name string the attribute name
Résultat mixed the attribute value. `null` if the attribute is not set or does not exist.
    public function getAttribute($name);