original_string: public function setDefault($attribute, $value, $type = null, $required = false, $nullable = false)
      {
          $this->defaults[$attribute] = $value;
  
          if (empty($type) === false) {
              $this->types[$attribute] = $type;
          }
  
          if ($required === true) {
              $this->requires[] = $attribute;
          }
  
          if ($nullable === false) {
              $this->notNullables[] = $attribute;
          }
  
          return $this;
      }
code: public function setDefault($attribute, $value, $type = null, $required = false, $nullable = false)
      {
          $this->defaults[$attribute] = $value;
  
          if (empty($type) === false) {
              $this->types[$attribute] = $type;
          }
  
          if ($required === true) {
              $this->requires[] = $attribute;
          }
  
          if ($nullable === false) {
              $this->notNullables[] = $attribute;
          }
  
          return $this;
      }
code_tokens: public function setDefault ( $ attribute , $ value , $ type = null , $ required = false , $ nullable = false ) { $ this -> defaults [ $ attribute ] = $ value ; if ( empty ( $ type ) === false ) { $ this -> types [ $ attribute ] = $ type ; } if ( $ required === true ) { $ this -> requires [ ] = $ attribute ; } if ( $ nullable === false ) { $ this -> notNullables [ ] = $ attribute ; } return $ this ; }
docstring: Sets the default value of a given attribute.
  
  @param string $attribute The name of the attribute
  @param mixed  $value     The default value of the attribute
  @param string $type      The accepted type. Any type for which a corresponding is_<type>() function exists is
  acceptable
  @param bool   $required  Is that attribute required?
  @param bool   $nullable  Is that attribute nullable?
  
  @return \Yosymfony\Spress\Core\Support\AttributesResolver This instance
docstring_tokens: Sets the default value of a given attribute .