Nvd\Crud\Form::attributes PHP 메소드

attributes() 공개 메소드

public attributes ( $value = null )
    public function attributes($value = null)
    {
        if ($value and !is_array($value)) {
            throw new \Exception("Attributes should be an array.");
        }
        if ($value) {
            $this->attributes = array_merge($this->attributes, $value);
            return $this;
        }
        return $this->attributes;
    }