src/StateAwareAwareTrait.php
protected function _setStateAware($stateAware)
    {
        if ($stateAware !== null && !($stateAware instanceof StateAwareInterface)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Argument is not a state aware object'),
                null,
                null,
                $stateAware
            );
        }

        $this->stateAware = $stateAware;
    }
protected function _setStateAware($stateAware)
    {
        if ($stateAware !== null && !($stateAware instanceof StateAwareInterface)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Argument is not a state aware object'),
                null,
                null,
                $stateAware
            );
        }

        $this->stateAware = $stateAware;
    }
protected function _setStateAware ( $ stateAware ) { if ( $ stateAware !== null && ! ( $ stateAware instanceof StateAwareInterface ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Argument is not a state aware object' ) , null , null , $ stateAware ) ; } $ this -> stateAware = $ stateAware ; }
Sets the state-aware subject for with this instance.

@since [*next-version*]

@param StateAwareInterface|null $stateAware The state-aware subject instance.
Sets the state - aware subject for with this instance .