protected function setNameLabels()
    {
        $this->one = ($this->data['labels.has_one'] ? $this->data['labels.has_one'] : ucfirst($this->name));
        $this->many = ($this->data['labels.has_many'] ? $this->data['labels.has_many'] : ucfirst($this->name . 's'));
        $this->i18n = ($this->data['labels.text_domain'] ? $this->data['labels.text_domain'] : 'sober');
    }
protected function setNameLabels()
    {
        $this->one = ($this->data['labels.has_one'] ? $this->data['labels.has_one'] : ucfirst($this->name));
        $this->many = ($this->data['labels.has_many'] ? $this->data['labels.has_many'] : ucfirst($this->name . 's'));
        $this->i18n = ($this->data['labels.text_domain'] ? $this->data['labels.text_domain'] : 'sober');
    }
protected function setNameLabels ( ) { $ this -> one = ( $ this -> data [ 'labels.has_one' ] ? $ this -> data [ 'labels.has_one' ] : ucfirst ( $ this -> name ) ) ; $ this -> many = ( $ this -> data [ 'labels.has_many' ] ? $ this -> data [ 'labels.has_many' ] : ucfirst ( $ this -> name . 's' ) ) ; $ this -> i18n = ( $ this -> data [ 'labels.text_domain' ] ? $ this -> data [ 'labels.text_domain' ] : 'sober' ) ; }
Set required labels

Based on name, or keys labels.has-one and labels.has-many
Set required labels