Skip to content

Commit dfcddfd

Browse files
authored
Update set.php
1 parent 2f07c34 commit dfcddfd

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

set.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace JakeWhiteley\PhpSets;
44

5+
// incluse native-like helper functions
6+
require( __DIR__ . '/functions.php' );
7+
58
/**
69
* PHP implementation of a Java like Set object
710
*
@@ -164,13 +167,3 @@ public function offsetUnset( $offset )
164167
$this->size = $this->count();
165168
}
166169
}
167-
168-
/**
169-
* An additional function which allows a non OOP initialization of the Set object
170-
*
171-
* @param mixed ...$args Values to initially add to the Set object
172-
*/
173-
function set()
174-
{
175-
return ( new \ReflectionClass('Set') )->newInstanceArgs( func_get_args() );
176-
}

0 commit comments

Comments
 (0)