public function setAttribute($name)
    {
        if (!$this->isValidAttribute($name)) {
            throw new exception\InvalidArgumentException(sprintf(
                'Invalid attribute name "%s"', $name
            ));
        }

        $this->attribute = $name;
        return $this;
    }