from functional.state.phone_states import *


class Phone:

    def __init__(self, state=NormalState()):
        self.state = state

    def set_state(self, state):
        self.state = state

    def ring(self):
        self.state.ring()

938c9a8307e1d448b40fb979eb7e30eb063ab74b
<mask token>


class Phone:
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Phone:

    def __init__(self, state=NormalState()):
        self.state = state

    def set_state(self, state):
        self.state = state
    <mask token>

<mask token>


class Phone:

    def __init__(self, state=NormalState()):
        self.state = state

    def set_state(self, state):
        self.state = state

    def ring(self):
        self.state.ring()

from functional.state.phone_states import *


class Phone:

    def __init__(self, state=NormalState()):
        self.state = state

    def set_state(self, state):
        self.state = state

    def ring(self):
        self.state.ring()
