original_string: public static function init(array $attributes) {
          $obj = new Attributes;
          foreach ($attributes as $attribute) {
              $obj->{$attribute->key} = $attribute;
          }
          return $obj;
      }
code: public static function init(array $attributes) {
          $obj = new Attributes;
          foreach ($attributes as $attribute) {
              $obj->{$attribute->key} = $attribute;
          }
          return $obj;
      }
code_tokens: public static function init ( array $ attributes ) { $ obj = new Attributes ; foreach ( $ attributes as $ attribute ) { $ obj -> { $ attribute -> key } = $ attribute ; } return $ obj ; }
docstring: Initialize from list of attributes.
  @param Attribute[] $attributes
  @return Attributes
docstring_tokens: Initialize from list of attributes .