public function current()
    {
        if ($this->getWalkFlag() & self::WALK_X) {
            return $this->currentX();
        } elseif ($this->getWalkFlag() & self::WALK_Y) {
            return $this->currentY();
        } else {
            return $this->currentXY();
        }
    }
public function current()
    {
        if ($this->getWalkFlag() & self::WALK_X) {
            return $this->currentX();
        } elseif ($this->getWalkFlag() & self::WALK_Y) {
            return $this->currentY();
        } else {
            return $this->currentXY();
        }
    }
public function current ( ) { if ( $ this -> getWalkFlag ( ) & self :: WALK_X ) { return $ this -> currentX ( ) ; } elseif ( $ this -> getWalkFlag ( ) & self :: WALK_Y ) { return $ this -> currentY ( ) ; } else { return $ this -> currentXY ( ) ; } }
Get current value according to matrix's flag value

@return  mixed|null
@see     self::currentX()
@see     self::currentY()
@see     self::currentXY()
Get current value according to matrix s flag value