resourceConnection = $resourceConnection; } /** * @return array */ public function execute() : array { $connection = $this->resourceConnection->getConnection(); $select = $connection ->select() ->from( ['main_table' => $this->resourceConnection->getTableName(Cookie::MAIN_TABLE_NAME)], ['name'] ); return $connection->fetchCol($select); } }