Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
2e7b683b
Commit
2e7b683b
authored
Jan 08, 2007
by
david
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove call by &reference and add class type hints
parent
971083c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
Node.php
draft/Node.php
+3
-3
Tree.php
draft/Tree.php
+2
-2
No files found.
draft/Node.php
View file @
2e7b683b
...
...
@@ -57,7 +57,7 @@ class Doctrine_Node implements IteratorAggregate
* @param object $record instance of Doctrine_Record
* @param array $options options
*/
public
function
__construct
(
&
$record
,
$options
)
public
function
__construct
(
Doctrine_Record
$record
,
$options
)
{
$this
->
record
=
$record
;
$this
->
options
=
$options
;
...
...
@@ -71,7 +71,7 @@ class Doctrine_Node implements IteratorAggregate
* @param array $options options
* @return object $options instance of Doctrine_Node
*/
public
static
function
factory
(
&
$record
,
$implName
,
$options
=
array
())
public
static
function
factory
(
Doctrine_Record
$record
,
$implName
,
$options
=
array
())
{
$class
=
'Doctrine_Node_'
.
$implName
;
...
...
@@ -87,7 +87,7 @@ class Doctrine_Node implements IteratorAggregate
*
* @param object $record instance of Doctrine_Record
*/
public
function
setRecord
(
&
$record
)
public
function
setRecord
(
Doctrine_Record
$record
)
{
$this
->
record
=
$record
;
}
...
...
draft/Tree.php
View file @
2e7b683b
...
...
@@ -47,7 +47,7 @@ class Doctrine_Tree
* @param object $table instance of Doctrine_Table
* @param array $options options
*/
public
function
__construct
(
$table
,
$options
)
public
function
__construct
(
Doctrine_Table
$table
,
$options
)
{
$this
->
table
=
$table
;
$this
->
options
=
$options
;
...
...
@@ -80,7 +80,7 @@ class Doctrine_Tree
* @return object $options instance of Doctrine_Node
* @throws Doctrine_Exception if class does not extend Doctrine_Tree
*/
public
static
function
factory
(
&
$table
,
$implName
,
$options
=
array
())
public
static
function
factory
(
Doctrine_Table
$table
,
$implName
,
$options
=
array
())
{
$class
=
'Doctrine_Tree_'
.
$implName
;
if
(
!
class_exists
(
$class
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment