public function deadline($deadline = null) 
    {
        $ts = $deadline ?: $this->getAttribute("deadline");
        if (is_integer($ts) || $ts instanceof TimeWindow) {
            return new TimeWindow(["timeStamp" => $ts]);
        }

        return new TimeWindow();
    }
public function deadline($deadline = null) 
    {
        $ts = $deadline ?: $this->getAttribute("deadline");
        if (is_integer($ts) || $ts instanceof TimeWindow) {
            return new TimeWindow(["timeStamp" => $ts]);
        }

        return new TimeWindow();
    }
public function deadline ( $ deadline = null ) { $ ts = $ deadline ? : $ this -> getAttribute ( "deadline" ) ; if ( is_integer ( $ ts ) || $ ts instanceof TimeWindow ) { return new TimeWindow ( [ "timeStamp" => $ ts ] ) ; } return new TimeWindow ( ) ; }
Returns deadline associated with the transaction

@return int
Returns deadline associated with the transaction