function __construct(FieldsBuild $field, AssociationBuild $assoc, Validation $v) { $field->name($v->notEmpty())->alias($v->notEmpty())->location($assoc->belongTo()); }
function __construct(FieldsBuild $field, AssociationBuild $assoc) { $this->fields = $field->name('name')->name('alias')->name('location', $assoc->belongTo()); }