public function pop()
    {
        $this->throwExceptionIfEmpty();

        $arrayCopy = $this->getArrayCopy();
        $lastElement = array_pop($arrayCopy);
        $this->exchangeArray($arrayCopy);
        return $lastElement;
    }
public function pop()
    {
        $this->throwExceptionIfEmpty();

        $arrayCopy = $this->getArrayCopy();
        $lastElement = array_pop($arrayCopy);
        $this->exchangeArray($arrayCopy);
        return $lastElement;
    }
public function pop ( ) { $ this -> throwExceptionIfEmpty ( ) ; $ arrayCopy = $ this -> getArrayCopy ( ) ; $ lastElement = array_pop ( $ arrayCopy ) ; $ this -> exchangeArray ( $ arrayCopy ) ; return $ lastElement ; }
Pop the element off the end of array
@return mixed
@throws EmptyArrayException
Pop the element off the end of array