public function getAttributes()
    {
        $attributes = array();

        foreach ($this->getProperty() as $name => $property) {
            if ($property->isAttribute()) {
                $attributes[$name] = $property;
            }
        }

        return $attributes;
    }
public function getAttributes()
    {
        $attributes = array();

        foreach ($this->getProperty() as $name => $property) {
            if ($property->isAttribute()) {
                $attributes[$name] = $property;
            }
        }

        return $attributes;
    }
public function getAttributes ( ) { $ attributes = array ( ) ; foreach ( $ this -> getProperty ( ) as $ name => $ property ) { if ( $ property -> isAttribute ( ) ) { $ attributes [ $ name ] = $ property ; } } return $ attributes ; }
Return all the  properties of type attributes.

@return array
Return all the properties of type attributes .