diff options
Diffstat (limited to 'fusonic/linq/src/Fusonic/Linq/GroupedLinq.php')
-rw-r--r-- | fusonic/linq/src/Fusonic/Linq/GroupedLinq.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/fusonic/linq/src/Fusonic/Linq/GroupedLinq.php b/fusonic/linq/src/Fusonic/Linq/GroupedLinq.php new file mode 100644 index 00000000..2a2bb510 --- /dev/null +++ b/fusonic/linq/src/Fusonic/Linq/GroupedLinq.php @@ -0,0 +1,35 @@ +<?php + +/* + * This file is part of Fusonic-linq. + * + * (c) Fusonic GmbH + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Fusonic\Linq; + +use Fusonic\Linq\Linq; + +/** + * Class GroupedLinq + * Represents a Linq object that groups together other elements with a group key(). + * @package Fusonic\Linq + */ +class GroupedLinq extends Linq +{ + private $groupKey; + + public function __construct($groupKey, $dataSource) + { + parent::__construct($dataSource); + $this->groupKey = $groupKey; + } + + public function key() + { + return $this->groupKey; + } +}
\ No newline at end of file |