You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.
/**
* Sets the width of your interactive graphic.
*
* @param int $width The height of your interactive graphic.
*
* @return $this
*/
public function withWidth($width)
{
Type::enforce($width, Type::INTEGER);
$this->width = $width;
return $this;
}
and
/**
* Sets the margin setting of your interactive graphic.
*
* @param string $margin The margin setting of your interactive graphic.
*
* @see Interactive::NO_MARGIN
* @see Interactive::COLUMN_WIDTH
*
* @return $this
*/
public function withMargin($margin)
{
Type::enforceWithin(
$margin,
[
Interactive::NO_MARGIN,
Interactive::COLUMN_WIDTH
]
);
$this->margin = $margin;
return $this;
}
The withMargin method, must be compliant with the NO_MARGIN and COLUMN_WIDTH.
Method
withWidth
has enforceWithin [Interactive::NO_MARGIN, Interactive::COLUMN_WIDTH]whether it should be Type::enforce($width, Type::INTEGER);
?
The text was updated successfully, but these errors were encountered: