public function getAvailable()
    {
        if (!$this->getAvailableFrom() && !$this->getAvailableTill()) {
            return false;
        } elseif ($this->validateDate() && $this->validateAvailability()) {
            return true;
        }

        return false;
    }
public function getAvailable()
    {
        if (!$this->getAvailableFrom() && !$this->getAvailableTill()) {
            return false;
        } elseif ($this->validateDate() && $this->validateAvailability()) {
            return true;
        }

        return false;
    }
public function getAvailable ( ) { if ( ! $ this -> getAvailableFrom ( ) && ! $ this -> getAvailableTill ( ) ) { return false ; } elseif ( $ this -> validateDate ( ) && $ this -> validateAvailability ( ) ) { return true ; } return false ; }
Return if the ticket is available or not

@return bool
Return if the ticket is available or not