<?php

trait AttributeAccess
{
    public function __get($attribute)
    {
        return array_key_exists($attribute, $this->attributes) ? $this->attributes[$attribute] : null;
    }
}
