private function initActionTypes()
    {
        $this->actionTypes = [];

        foreach ($this->loadActionTypes() as $type) {
            if (!$type instanceof ActionTypeInterface) {
                throw new UnexpectedTypeException($type, ActionTypeInterface::class);
            }

            $this->actionTypes[get_class($type)] = $type;
        }
    }
private function initActionTypes()
    {
        $this->actionTypes = [];

        foreach ($this->loadActionTypes() as $type) {
            if (!$type instanceof ActionTypeInterface) {
                throw new UnexpectedTypeException($type, ActionTypeInterface::class);
            }

            $this->actionTypes[get_class($type)] = $type;
        }
    }
private function initActionTypes ( ) { $ this -> actionTypes = [ ] ; foreach ( $ this -> loadActionTypes ( ) as $ type ) { if ( ! $ type instanceof ActionTypeInterface ) { throw new UnexpectedTypeException ( $ type , ActionTypeInterface :: class ) ; } $ this -> actionTypes [ get_class ( $ type ) ] = $ type ; } }
Initializes the action types.

@throws UnexpectedTypeException if any registered type is not an instance of ActionTypeInterface
Initializes the action types .