public function setMargin($value) {
    if (is_object($value) && !$value instanceof Margin) {
      $this->triggerError('Object not of type Margin');
    }
    else {
      $this->margin = $value;
    }
    return $this;
  }
public function setMargin($value) {
    if (is_object($value) && !$value instanceof Margin) {
      $this->triggerError('Object not of type Margin');
    }
    else {
      $this->margin = $value;
    }
    return $this;
  }
public function setMargin ( $ value ) { if ( is_object ( $ value ) && ! $ value instanceof Margin ) { $ this -> triggerError ( 'Object not of type Margin' ) ; } else { $ this -> margin = $ value ; } return $ this ; }
Setter for margin.

@param int|\ChapterThree\AppleNewsAPI\Document\Margin $value
Margin.

@return $this
Setter for margin .