public function mapRulesToAttributes()
    {
        foreach ($this->rules as $rule) {
            $params = explode(':', $rule);

            $this->attributes[reset($params)] = end($params);
        }
    }
public function mapRulesToAttributes()
    {
        foreach ($this->rules as $rule) {
            $params = explode(':', $rule);

            $this->attributes[reset($params)] = end($params);
        }
    }
public function mapRulesToAttributes ( ) { foreach ( $ this -> rules as $ rule ) { $ params = explode ( ':' , $ rule ) ; $ this -> attributes [ reset ( $ params ) ] = end ( $ params ) ; } }
Map rules for field attributes.

@return void
Map rules for field attributes .