public function getStatusRules()
    {
        if (!is_string($this->statusAttribute) || empty($this->statusAttribute)) {
            return [];
        }
        if (empty($this->statusRules)) {
            $this->statusRules = [
                [[$this->statusAttribute], 'required'],
                [[$this->statusAttribute], 'number', 'integerOnly' => true, 'min' => 0],
            ];
        }
        return $this->statusRules;
    }
public function getStatusRules()
    {
        if (!is_string($this->statusAttribute) || empty($this->statusAttribute)) {
            return [];
        }
        if (empty($this->statusRules)) {
            $this->statusRules = [
                [[$this->statusAttribute], 'required'],
                [[$this->statusAttribute], 'number', 'integerOnly' => true, 'min' => 0],
            ];
        }
        return $this->statusRules;
    }
public function getStatusRules ( ) { if ( ! is_string ( $ this -> statusAttribute ) || empty ( $ this -> statusAttribute ) ) { return [ ] ; } if ( empty ( $ this -> statusRules ) ) { $ this -> statusRules = [ [ [ $ this -> statusAttribute ] , 'required' ] , [ [ $ this -> statusAttribute ] , 'number' , 'integerOnly' => true , 'min' => 0 ] , ] ; } return $ this -> statusRules ; }
Get the rules associated with status attribute.
@return array
Get the rules associated with status attribute .