* @return void
* @throws StackerFullException If the stack is full
*/
- public function pushNamed ($stackerName, $value) {
+ public function pushNamed (string $stackerName, $value) {
// Call the protected method
parent::addValue($stackerName, $value);
}
* @param $stackerName Name of the stack
* @return $value Value of the current stack entry
* @throws BadMethodCallException If the named stacker was not found
- * @throws EmptyStackerException If the named stacker is empty
+ * @throws BadMethodCallException If the named stacker is empty
*/
- public function popNamed ($stackerName) {
+ public function popNamed (string $stackerName) {
// Get the value
$value = $this->getNamed($stackerName);
* @param $stackerName Name of the stack
* @return $value Value of last added value
* @throws BadMethodCallException If the named stacker was not found
- * @throws EmptyStackerException If the named stacker is empty
+ * @throws BadMethodCallException If the named stacker is empty
*/
- public function getNamed ($stackerName) {
+ public function getNamed (string $stackerName) {
// Call the protected method
return parent::getLastValue($stackerName);
}