Skip to content

Commit 86bbc2a

Browse files
authored
Merge pull request rikbruil#16 from holtkamp/patch-1
Have setType() return $this to realize fluent setter
2 parents 4a53c7a + fd11826 commit 86bbc2a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Query/Join.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public function __construct($field, $newAlias, $dqlAlias = null)
6060
/**
6161
* @param string $type
6262
*
63+
* @return $this
64+
*
6365
* @throws InvalidArgumentException
6466
*/
6567
public function setType($type)
@@ -73,6 +75,8 @@ public function setType($type)
7375
}
7476

7577
$this->type = $type;
78+
79+
return $this;
7680
}
7781

7882
/**

0 commit comments

Comments
 (0)