public function testGetSetBingingFrequency()
 {
     $expected = Drinking::BINGE_MONTHLY;
     $this->assertEmpty($this->instance->getBingingFrequency());
     $this->assertInstanceOf(Drinking::class, $this->instance->setBingingFrequency($expected));
     $this->assertEquals($expected, $this->instance->getBingingFrequency());
 }
 /**
  * @param Drinking $drinking
  * @return array
  */
 public static function extractDrinking(Drinking $drinking)
 {
     return array_merge(array("drinkingDoYouDrink" => $drinking->getDoYouDrink(), "drinkingFrequency" => $drinking->getWhichDaysDoYouDrink()), self::extractDrinksForExport($drinking->getWeekdayDrinks()), self::extractDrinksForExport($drinking->getWeekendDrinks(), 'weekend'), self::extractDrinksForExport($drinking->getOccasionalDrinks(), 'occasional'), array("hasBinged" => $drinking->getBingingFrequency(), "drinkingCompleted" => $drinking->isCompleted(), "drinkingRag" => $drinking->getRagScore()['rag']));
 }