* @return $isFull Whether the stack is full
* @throws NoStackerException If given stack is missing
*/
- protected final function isStackFull ($stackerName) {
+ protected function isStackFull ($stackerName) {
// Is the stack not yet initialized?
if (!$this->isStackInitialized($stackerName)) {
// Throw an exception
* @return $isEmpty Whether the stack is empty
* @throws NoStackerException If given stack is missing
*/
- public final function isStackEmpty ($stackerName) {
+ public function isStackEmpty ($stackerName) {
// Is the stack not yet initialized?
if (!$this->isStackInitialized($stackerName)) {
// Throw an exception
*
* @return $totalEntries Total entries in this stack
*/
- private function getCounter () {
+ private final function getCounter () {
// Get it
return $this->totalEntries;
}
*
* @return void
*/
- private function incrementCounter () {
+ private final function incrementCounter () {
// Get it
$this->totalEntries++;
}
*
* @return $seekPosition Current seek position (stored here in object)
*/
- private function getSeekPosition () {
+ private final function getSeekPosition () {
// Get it
return $this->seekPosition;
}
* @param $seekPosition Current seek position (stored here in object)
* @return void
*/
- private function setSeekPosition ($seekPosition) {
+ private final function setSeekPosition ($seekPosition) {
// And set it
$this->seekPosition = $seekPosition;
}
* @param $stackerName Name of the stack
* @return $isFull Whether the stack is full
*/
- protected final function isStackFull ($stackerName) {
+ protected function isStackFull ($stackerName) {
// File-based stacks will only run full if the disk space is low.
// @TODO Please implement this, returning FALSE
$isFull = FALSE;
* @return $isEmpty Whether the stack is empty
* @throws NoStackerException If given stack is missing
*/
- public final function isStackEmpty ($stackerName) {
+ public function isStackEmpty ($stackerName) {
// So, is the stack empty?
$isEmpty = (($this->getStackCount($stackerName)) == 0);