public function __construct($name, $label, Datagrid $grid) { $this->name = $name; $this->label = $label; $this->grid = $grid; }