<commit_before><?php
namespace AboutYou\SDK\Model\Basket;

class DeliveryEstimation
{
    /**
     * @var int
     */
    protected $minDays;

    /**
     * @var int
     */
    protected $maxDays;

    /**
     * @var \DateTime
     */
    protected $minDate;

    /**
     * @var \DateTime
     */
    protected $maxDate;

    public static function createFromJSON($jsonObject)
    {
        return new DeliveryEstimation(
            isset($jsonObject->min) ? intval($jsonObject->min) : null,
            isset($jsonObject->max) ? intval($jsonObject->max) : null,
            isset($jsonObject->min_date) ? new \DateTime($jsonObject->min_date) : null,
            isset($jsonObject->max_date) ? new \DateTime($jsonObject->max_date) : null
        );
    }

    public function __construct($minDays, $maxDays, $minDate, $maxDate)
    {
        $this->minDays = $minDays;
        $this->maxDays = $maxDays;
        $this->minDate = $minDate;
        $this->maxDate = $maxDate;
    }

    /**
     * @return int
     */
    public function getMinDays()
    {
        return $this->minDays;
    }

    /**
     * @return int
     */
    public function getMaxDays()
    {
        return $this->maxDays;
    }

    /**
     * @return \DateTime
     */
    public function getMinDate()
    {
        return $this->minDate;
    }

    /**
     * @return \DateTime
     */
    public function getMaxDate()
    {
        return $this->maxDate;
    }
}<commit_msg>added holiday/weekend information to DeliveryEstimation<commit_after><?php
namespace AboutYou\SDK\Model\Basket;

class DeliveryEstimation
{
    /**
     * @var int
     */
    protected $minDays;

    /**
     * @var int
     */
    protected $maxDays;

    /**
     * @var \DateTime
     */
    protected $minDate;

    /**
     * @var \DateTime
     */
    protected $maxDate;

    /**
     * @var boolean
     */
    protected $holiday;

    /**
     * @var boolean
     */
    protected $weekend;

    /**
     * @var boolean
     */
    protected $crossdocked;

    public static function createFromJSON($jsonObject)
    {
        return new DeliveryEstimation(
            isset($jsonObject->min) ? intval($jsonObject->min) : null,
            isset($jsonObject->max) ? intval($jsonObject->max) : null,
            isset($jsonObject->min_date) ? new \DateTime($jsonObject->min_date) : null,
            isset($jsonObject->max_date) ? new \DateTime($jsonObject->max_date) : null,
            isset($jsonObject->crossdocked) ? boolval($jsonObject->crossdocked) : null,
            isset($jsonObject->holiday) ? boolval($jsonObject->holiday) : null,
            isset($jsonObject->weekend) ? boolval($jsonObject->weekend) : null

        );
    }

    public function __construct($minDays, $maxDays, $minDate, $maxDate, $crossdocked, $holiday, $weekend)
    {
        $this->minDays = $minDays;
        $this->maxDays = $maxDays;
        $this->minDate = $minDate;
        $this->maxDate = $maxDate;
        $this->crossdocked = $crossdocked;
        $this->holiday = $holiday;
        $this->weekend = $weekend;
    }

    /**
     * @return int
     */
    public function getMinDays()
    {
        return $this->minDays;
    }

    /**
     * @return int
     */
    public function getMaxDays()
    {
        return $this->maxDays;
    }

    /**
     * @return \DateTime
     */
    public function getMinDate()
    {
        return $this->minDate;
    }

    /**
     * @return \DateTime
     */
    public function getMaxDate()
    {
        return $this->maxDate;
    }

    /**
     * @return boolean
     */
    public function getHoliday()
    {
        return $this->holiday;
    }

    /**
     * @return boolean
     */
    public function getWeekend()
    {
        return $this->weekend;
    }

    /**
     * @return boolean
     */
    public function getCrossdocked()
    {
        return $this->crossdocked;
    }
}
{'fraction_non_alphanumeric': 0.1411342057993328, 'fraction_numerical': 0.0, 'mean_word_length': 1.85986793837124, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4148509', 'n_tokens_mistral': 1251, 'n_tokens_neox': 1195, 'n_words': 223}