$edge * @param Collection $_children * @param Collection $_parents */ function __construct( public Record $record, public Option $edge, public Collection $_children = new Collection(), public Collection $_parents = new Collection(), ) { } public static function fromRecord(Record $record): QueryRecord { return new QueryRecord( record: $record, edge: none(), ); } }