public function getAttr($key = null)
    {
        if (null !== $key) {
            return isset($this->attr[$attribute]) ? $this->attr[$attribute] : null;
        }

        return $this->attr;
    }
public function getAttr($key = null)
    {
        if (null !== $key) {
            return isset($this->attr[$attribute]) ? $this->attr[$attribute] : null;
        }

        return $this->attr;
    }
public function getAttr ( $ key = null ) { if ( null !== $ key ) { return isset ( $ this -> attr [ $ attribute ] ) ? $ this -> attr [ $ attribute ] : null ; } return $ this -> attr ; }
Get Current Attribute.

@param mixed $key Pdo Attribute

@return mixed Pdo Attr Value
Get Current Attribute .