38         \
Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory,
    74     public function assignState($state, $isDefault = 
false, $visibleOnFront = 
false)
    82         } 
catch (\Exception $e) {
    96         if ($this->
getResource()->checkIsStateLast($state)) {
    98                 __(
"The last status can't be changed and needs to stay assigned to its current state.")
   103                 __(
"The status can't be unassigned because the status is currently used by an order.")
   119         $this->_eventManager->dispatch(
   120             'sales_order_status_unassign',
   136         if ($this->
hasData(
'store_labels')) {
   137             return $this->
_getData(
'store_labels');
   140         $this->
setData(
'store_labels', $labels);
   154         if (isset($labels[
$store->getId()])) {
   155             return $labels[
$store->getId()];
   157             return __($this->getLabel());
   169         $this->
load($state, 
'default_state');
 
load($modelId, $field=null)
 
loadDefaultByState($state)
 
validateBeforeUnassign($state)
 
getStoreLabel($store=null)
 
setData($key, $value=null)
 
__construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])