src/Libraries/Validations/TermCampaignValidation.php
/**
     * Checks if campaign is valid for time of asset acquisition.
     *
     * @return bool
     */
Checks if campaign is valid for time of asset acquisition.
@return bool
Checks if campaign is valid for time of asset acquisition . @return bool
private function isAssetTimeValid ()
    {
        if ( !$this->term->start_time || !$this->term->end_time ) return true;
        $startTime = $this->request->original_pricing_start_time ?? $this->request->start_time;
        $endTime = $this->request->original_pricing_end_time ?? $this->request->end_time;
        return ( $this->term->start_time <= $startTime && $this->term->end_time >= $endTime );
    }
private function isAssetTimeValid ( ) { if ( ! $ this -> term -> start_time || ! $ this -> term -> end_time ) return true ; $ startTime = $ this -> request -> original_pricing_start_time ?? $ this -> request -> start_time ; $ endTime = $ this -> request -> original_pricing_end_time ?? $ this -> request -> end_time ; return ( $ this -> term -> start_time <= $ startTime && $ this -> term -> end_time >= $ endTime ) ; }
Checks if campaign is valid for time of asset acquisition.
Checks if campaign is valid for time of asset acquisition .