- Added new class field $urlSourceInstance (What?! Not added before?) with
interface UrlSource as type-hint
- Removed deprecated classes/include files
- Added some "life" to FiFoFileStack as this class may happen the same was the
memory-based counter part FiFoStack. Still the BaseFileStack needs a lot
enhancement (unfinished).
Signed-off-by: Roland Häder <roland@mxchange.org>
+++ /dev/null
-<?php
-// @DEPRECATED
-?>
+++ /dev/null
-<?php
-// @DEPRECATED
-?>
*/
private $sourceInstance = NULL;
*/
private $sourceInstance = NULL;
+ /**
+ * An instance of a UrlSource class
+ */
+ private $urlSourceInstance = NULL;
+
/**
* An instance of a InputStream class
*/
/**
* An instance of a InputStream class
*/
/**
* Setter for a Sourceable instance
*
/**
* Setter for a Sourceable instance
*
- * @param $sourceInstance The Sourceable instance
+ * @param $sourceInstance An instance of a Sourceable class
* @return void
*/
protected final function setSourceInstance (Sourceable $sourceInstance) {
* @return void
*/
protected final function setSourceInstance (Sourceable $sourceInstance) {
/**
* Getter for a Sourceable instance
*
/**
* Getter for a Sourceable instance
*
- * @return $sourceInstance The Sourceable instance
+ * @return $sourceInstance An instance of a Sourceable class
*/
protected final function getSourceInstance () {
return $this->sourceInstance;
}
*/
protected final function getSourceInstance () {
return $this->sourceInstance;
}
+ /**
+ * Setter for a UrlSource instance
+ *
+ * @param $sourceInstance An instance of a UrlSource class
+ * @return void
+ */
+ protected final function setUrlSourceInstance (UrlSource $urlSourceInstance) {
+ $this->urlSourceInstance = $urlSourceInstance;
+ }
+
+ /**
+ * Getter for a UrlSource instance
+ *
+ * @return $urlSourceInstance An instance of a UrlSource class
+ */
+ protected final function getUrlSourceInstance () {
+ return $this->urlSourceInstance;
+ }
+
/**
* Getter for a InputStream instance
*
/**
* Getter for a InputStream instance
*
+++ /dev/null
-<?php
-// @DEPRECATED
-?>
+++ /dev/null
-<?php
-// @DEPRECATED
-?>
+++ /dev/null
-<?php
-// @DEPRECATED
-?>
* @throws StackerFullException If the stack is full
*/
public function pushNamed ($stackerName, $value) {
* @throws StackerFullException If the stack is full
*/
public function pushNamed ($stackerName, $value) {
- $this->partialStub('stackerName=' . $stackerName . ',value[' . gettype($value) . ']=' . $value);
+ // Call the protected method
+ parent::addValue($stackerName, $value);
- * 'Pops' a value from a named stacker
+ * 'Pops' a value from a named stacker and returns it's value
*
* @param $stackerName Name of the stack
*
* @param $stackerName Name of the stack
+ * @return $value Value of the current stack entry
* @throws NoStackerException If the named stacker was not found
* @throws EmptyStackerException If the named stacker is empty
*/
public function popNamed ($stackerName) {
* @throws NoStackerException If the named stacker was not found
* @throws EmptyStackerException If the named stacker is empty
*/
public function popNamed ($stackerName) {
- $this->partialStub('stackerName=' . $stackerName);
+ // Get the value
+ $value = $this->getNamed($stackerName);
+
+ // Call the protected method
+ parent::popFirst($stackerName);
+
+ // Return the value
+ return $value;
* @throws EmptyStackerException If the named stacker is empty
*/
public function getNamed ($stackerName) {
* @throws EmptyStackerException If the named stacker is empty
*/
public function getNamed ($stackerName) {
- $this->partialStub('stackerName=' . $stackerName);
+ // Call the protected method
+ return parent::getFirstValue($stackerName);
+++ /dev/null
-<?php
-// @DEPRECATED
-?>