src/Driver/Attribute/Support.php
protected function getAttributes( array $attributes ) : array
   {

      $result = [];

      foreach ( $attributes as $attribute )
      {
         if ( ! ( $attribute instanceof Descriptor ) )
         {
            continue;
         }
         $result[ $attribute->getName() ] = $attribute;
      }

      return $result;

   }
protected function getAttributes( array $attributes ) : array
   {

      $result = [];

      foreach ( $attributes as $attribute )
      {
         if ( ! ( $attribute instanceof Descriptor ) )
         {
            continue;
         }
         $result[ $attribute->getName() ] = $attribute;
      }

      return $result;

   }
protected function getAttributes ( array $ attributes ) : array { $ result = [ ] ; foreach ( $ attributes as $ attribute ) { if ( ! ( $ attribute instanceof Descriptor ) ) { continue ; } $ result [ $ attribute -> getName ( ) ] = $ attribute ; } return $ result ; }
Results array of items.

@param  array  $attributes
@return \Niirrty\DB\Driver\Attribute\Descriptor[]
Results array of items .