public function equals(PeriodInterface $period)
    {
        return
            $period instanceof static &&
            $this->begin->format('Y-m-d-H-i-s') === $period->getBegin()->format('Y-m-d-H-i-s')
        ;
    }
public function equals(PeriodInterface $period)
    {
        return
            $period instanceof static &&
            $this->begin->format('Y-m-d-H-i-s') === $period->getBegin()->format('Y-m-d-H-i-s')
        ;
    }
public function equals ( PeriodInterface $ period ) { return $ period instanceof static && $ this -> begin -> format ( 'Y-m-d-H-i-s' ) === $ period -> getBegin ( ) -> format ( 'Y-m-d-H-i-s' ) ; }
Checks if a period is equals to an other.

@param PeriodInterface $period

@return bool
Checks if a period is equals to an other .