scratch – Blame information for rev 87

Subversion Repositories:
Rev:
Rev Author Line No. Line
87 office 1 <?php
2  
3 /*
4 * This file is part of Fusonic-linq.
5 *
6 * (c) Fusonic GmbH
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11  
12 namespace Fusonic\Linq;
13  
14 use Fusonic\Linq\Linq;
15  
16 /**
17 * Class GroupedLinq
18 * Represents a Linq object that groups together other elements with a group key().
19 * @package Fusonic\Linq
20 */
21 class GroupedLinq extends Linq
22 {
23 private $groupKey;
24  
25 public function __construct($groupKey, $dataSource)
26 {
27 parent::__construct($dataSource);
28 $this->groupKey = $groupKey;
29 }
30  
31 public function key()
32 {
33 return $this->groupKey;
34 }
35 }