forked from doctrine/orm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed documentation for Doctrine\ORM\Query\Expr and Doctrine\ORM\Quer…
…y\Filter
- Loading branch information
Benjamin Morel
committed
Dec 13, 2012
1 parent
d435780
commit 28966e2
Showing
14 changed files
with
61 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for building DQL and parts | ||
* Expression class for building DQL and parts. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Abstract base Expr class for building DQL parts | ||
* Abstract base Expr class for building DQL parts. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
@@ -65,8 +64,9 @@ public function __construct($args = array()) | |
} | ||
|
||
/** | ||
* @param array $args | ||
* @return Base | ||
* @param array $args | ||
* | ||
* @return Base | ||
*/ | ||
public function addMultiple($args = array()) | ||
{ | ||
|
@@ -78,8 +78,11 @@ public function addMultiple($args = array()) | |
} | ||
|
||
/** | ||
* @param mixed $arg | ||
* @return Base | ||
* @param mixed $arg | ||
* | ||
* @return Base | ||
* | ||
* @throws \InvalidArgumentException | ||
*/ | ||
public function add($arg) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for DQL comparison expressions | ||
* Expression class for DQL comparison expressions. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
@@ -56,9 +55,9 @@ class Comparison | |
/** | ||
* Creates a comparison expression with the given arguments. | ||
* | ||
* @param mixed $leftExpr | ||
* @param string $operator | ||
* @param mixed $rightExpr | ||
* @param mixed $leftExpr | ||
* @param string $operator | ||
* @param mixed $rightExpr | ||
*/ | ||
public function __construct($leftExpr, $operator, $rightExpr) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for building DQL and parts | ||
* Expression class for building DQL and parts. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
@@ -49,10 +48,10 @@ public function __toString() | |
return implode($this->separator, $components); | ||
} | ||
|
||
|
||
/** | ||
* @param string $part | ||
* @return string | ||
* @param string $part | ||
* | ||
* @return string | ||
*/ | ||
private function processQueryPart($part) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for DQL from | ||
* Expression class for DQL from. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
@@ -47,9 +46,9 @@ class From | |
protected $indexBy; | ||
|
||
/** | ||
* @param string $from The class name. | ||
* @param string $alias The alias of the class. | ||
* @param string $indexBy The index for the from. | ||
* @param string $from The class name. | ||
* @param string $alias The alias of the class. | ||
* @param string $indexBy The index for the from. | ||
*/ | ||
public function __construct($from, $alias, $indexBy = null) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for generating DQL functions | ||
* Expression class for generating DQL functions. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
@@ -44,8 +43,8 @@ class Func | |
/** | ||
* Creates a function, with the given argument. | ||
* | ||
* @param string $name | ||
* @param array $arguments | ||
* @param string $name | ||
* @param array $arguments | ||
*/ | ||
public function __construct($name, $arguments) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for building DQL Group By parts | ||
* Expression class for building DQL Group By parts. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for DQL from | ||
* Expression class for DQL join. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
@@ -68,12 +67,12 @@ class Join | |
protected $indexBy; | ||
|
||
/** | ||
* @param string $joinType The condition type constant. Either INNER_JOIN or LEFT_JOIN. | ||
* @param string $join The relationship to join | ||
* @param string $alias The alias of the join | ||
* @param string $conditionType The condition type constant. Either ON or WITH. | ||
* @param string $condition The condition for the join | ||
* @param string $indexBy The index for the join | ||
* @param string $joinType The condition type constant. Either INNER_JOIN or LEFT_JOIN. | ||
* @param string $join The relationship to join. | ||
* @param string|null $alias The alias of the join. | ||
* @param string|null $conditionType The condition type constant. Either ON or WITH. | ||
* @param string|null $condition The condition for the join. | ||
* @param string|null $indexBy The index for the join. | ||
*/ | ||
public function __construct($joinType, $join, $alias = null, $conditionType = null, $condition = null, $indexBy = null) | ||
{ | ||
|
@@ -133,7 +132,6 @@ public function getIndexBy() | |
return $this->indexBy; | ||
} | ||
|
||
|
||
/** | ||
* @return string | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for generating DQL functions | ||
* Expression class for generating DQL functions. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
@@ -48,5 +47,4 @@ public function getParts() | |
{ | ||
return $this->parts; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for DQL math statements | ||
* Expression class for DQL math statements. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
@@ -49,9 +48,9 @@ class Math | |
/** | ||
* Creates a mathematical expression with the given arguments. | ||
* | ||
* @param mixed $leftExpr | ||
* @param string $operator | ||
* @param mixed $rightExpr | ||
* @param mixed $leftExpr | ||
* @param string $operator | ||
* @param mixed $rightExpr | ||
*/ | ||
public function __construct($leftExpr, $operator, $rightExpr) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for building DQL Order By parts | ||
* Expression class for building DQL Order By parts. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
@@ -57,8 +56,8 @@ class OrderBy | |
protected $parts = array(); | ||
|
||
/** | ||
* @param string $sort | ||
* @param string $order | ||
* @param string|null $sort | ||
* @param string|null $order | ||
*/ | ||
public function __construct($sort = null, $order = null) | ||
{ | ||
|
@@ -68,8 +67,10 @@ public function __construct($sort = null, $order = null) | |
} | ||
|
||
/** | ||
* @param string $sort | ||
* @param string $order | ||
* @param string $sort | ||
* @param string|null $order | ||
* | ||
* @return void | ||
*/ | ||
public function add($sort, $order = null) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for building DQL OR clauses | ||
* Expression class for building DQL OR clauses. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,8 @@ | |
namespace Doctrine\ORM\Query\Expr; | ||
|
||
/** | ||
* Expression class for building DQL select statements | ||
* Expression class for building DQL select statements. | ||
* | ||
* | ||
* @link www.doctrine-project.org | ||
* @since 2.0 | ||
* @author Guilherme Blanco <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters