public function __construct($name, $value, User $user) { $this->attribute = (string) $name; $this->value = $value; $this->user = $user; }