public function includes(PeriodInterface $period, $strict = true)
    {
        if (true === $strict) {
            return $this->getBegin() <= $period->getBegin() && $this->getEnd() >= $period->getEnd();
        }

        return
            $this->includes($period, true) ||
            $period->includes($this, true) ||
            $this->contains($period->getBegin()) ||
            $this->contains($period->getEnd())
        ;
    }
public function includes(PeriodInterface $period, $strict = true)
    {
        if (true === $strict) {
            return $this->getBegin() <= $period->getBegin() && $this->getEnd() >= $period->getEnd();
        }

        return
            $this->includes($period, true) ||
            $period->includes($this, true) ||
            $this->contains($period->getBegin()) ||
            $this->contains($period->getEnd())
        ;
    }
public function includes ( PeriodInterface $ period , $ strict = true ) { if ( true === $ strict ) { return $ this -> getBegin ( ) <= $ period -> getBegin ( ) && $ this -> getEnd ( ) >= $ period -> getEnd ( ) ; } return $ this -> includes ( $ period , true ) || $ period -> includes ( $ this , true ) || $ this -> contains ( $ period -> getBegin ( ) ) || $ this -> contains ( $ period -> getEnd ( ) ) ; }
Returns true if the period include the other period
given as argument.

@param PeriodInterface $period
@param bool            $strict

@return bool
Returns true if the period include the other period given as argument .