public function setLength($length)
    {
        if (intval($length) < 0) {
            throw new \LengthException(sprintf('Invalid length: %d', $length));
        }

        $this->length = intval($length);

        return $this;
    }
public function setLength($length)
    {
        if (intval($length) < 0) {
            throw new \LengthException(sprintf('Invalid length: %d', $length));
        }

        $this->length = intval($length);

        return $this;
    }
public function setLength ( $ length ) { if ( intval ( $ length ) < 0 ) { throw new \ LengthException ( sprintf ( 'Invalid length: %d' , $ length ) ) ; } $ this -> length = intval ( $ length ) ; return $ this ; }
Sets length.

@param integer $length

@return FeedItemEnclosure

@throws \LengthException
Sets length .