public function getLivePageVersion($page) { if ($page->ab_testing_enabled) { return $this->getLivePageVersionByAB($page); } return $this->getLivePageVersionByDate($page); }