original_string: public function setMargin($value) {
      if (is_object($value) && !$value instanceof Margin) {
        $this->triggerError('Object not of type Margin');
      }
      else {
        $this->margin = $value;
      }
      return $this;
    }
code: public function setMargin($value) {
      if (is_object($value) && !$value instanceof Margin) {
        $this->triggerError('Object not of type Margin');
      }
      else {
        $this->margin = $value;
      }
      return $this;
    }
code_tokens: public function setMargin ( $ value ) { if ( is_object ( $ value ) && ! $ value instanceof Margin ) { $ this -> triggerError ( 'Object not of type Margin' ) ; } else { $ this -> margin = $ value ; } return $ this ; }
docstring: Setter for margin.
  
  @param int|\ChapterThree\AppleNewsAPI\Document\Margin $value
  Margin.
  
  @return $this
docstring_tokens: Setter for margin .