public static function set_StockState( $state )
    {
        if( $state instanceof StockState or null === $state ) {
            $state = StockState::makeFromString( $state );
        }
        return $state;
    }
public static function set_StockState( $state )
    {
        if( $state instanceof StockState or null === $state ) {
            $state = StockState::makeFromString( $state );
        }
        return $state;
    }
public static function set_StockState ( $ state ) { if ( $ state instanceof StockState or null === $ state ) { $ state = StockState :: makeFromString ( $ state ) ; } return $ state ; }
Set entity StockState
@param StockState $state
@return StockState
Set entity StockState