protected function initAttrs()
    {
        $attrs = self::getAttrs();
        foreach ($attrs as $key => $attr) {
            if (! isset($attr['default'])) continue;
            if (! isset($this->cleanData[$key])) {
                $this->$key = $attr['default'];
            }
        }
    }
protected function initAttrs()
    {
        $attrs = self::getAttrs();
        foreach ($attrs as $key => $attr) {
            if (! isset($attr['default'])) continue;
            if (! isset($this->cleanData[$key])) {
                $this->$key = $attr['default'];
            }
        }
    }
protected function initAttrs ( ) { $ attrs = self :: getAttrs ( ) ; foreach ( $ attrs as $ key => $ attr ) { if ( ! isset ( $ attr [ 'default' ] ) ) continue ; if ( ! isset ( $ this -> cleanData [ $ key ] ) ) { $ this -> $ key = $ attr [ 'default' ] ; } } }
Initialize attributes with default value

@return null
Initialize attributes with default value