summaryrefslogtreecommitdiff
path: root/framework/Collections/TQueue.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
commit5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (patch)
treee870d29e21c14d5b1683d638dff978afe0a104fa /framework/Collections/TQueue.php
parent53e4cd65205ac33d7dbc61a767f467c1b896dfc6 (diff)
Apply namespaces to class inheritances (pt1)
Diffstat (limited to 'framework/Collections/TQueue.php')
-rw-r--r--framework/Collections/TQueue.php12
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()