diff options
Diffstat (limited to 'framework/Collections/TQueue.php')
-rw-r--r-- | framework/Collections/TQueue.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/framework/Collections/TQueue.php b/framework/Collections/TQueue.php index 5126e5d9..6bb38377 100644 --- a/framework/Collections/TQueue.php +++ b/framework/Collections/TQueue.php @@ -10,6 +10,8 @@ */ namespace Prado\Collections; +use Prado\Exceptions\TInvalidDataTypeException; +use Prado\Exceptions\TInvalidOperationException; /** * TQueue class @@ -32,7 +34,7 @@ namespace Prado\Collections; * @package Prado\Collections * @since 3.1 */ -class TQueue extends TComponent implements IteratorAggregate,Countable +class TQueue extends \Prado\TComponent implements \IteratorAggregate, \Countable { /** * internal data storage @@ -73,7 +75,7 @@ class TQueue extends TComponent implements IteratorAggregate,Countable */ public function copyFrom($data) { - if(is_array($data) || ($data instanceof Traversable)) + if(is_array($data) || ($data instanceof \Traversable)) { $this->clear(); foreach($data as $item) @@ -146,12 +148,12 @@ class TQueue extends TComponent implements IteratorAggregate,Countable /** * Returns an iterator for traversing the items in the queue. - * This method is required by the interface IteratorAggregate. + * This method is required by the interface \IteratorAggregate. * @return Iterator an iterator for traversing the items in the queue. */ public function getIterator() { - return new ArrayIterator( $this->_d ); + return new \ArrayIterator( $this->_d ); } /** @@ -164,7 +166,7 @@ class TQueue extends TComponent implements IteratorAggregate,Countable /** * Returns the number of items in the queue. - * This method is required by Countable interface. + * This method is required by \Countable interface. * @return integer number of items in the queue. */ public function count() |