yii\db\ActiveRecordInterface::getAttribute PHP Method

getAttribute() public method

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
return mixed the attribute value. `null` if the attribute is not set or does not exist.
    public function getAttribute($name);