original_string: protected function set_post( $post ) {
  		$this->post = $post;
  		$this->id   = ( isset( $post->ID ) ) ? $post->ID : false;
  
  		if ( ! empty( $this->taxonomies() ) ) {
  			foreach ( $this->taxonomies() as $taxonomy ) {
  				$this->{$taxonomy} = $this->get_terms( $taxonomy, array( 'fields' => 'all' ) );
  			}
  		}
  	}
code: protected function set_post( $post ) {
  		$this->post = $post;
  		$this->id   = ( isset( $post->ID ) ) ? $post->ID : false;
  
  		if ( ! empty( $this->taxonomies() ) ) {
  			foreach ( $this->taxonomies() as $taxonomy ) {
  				$this->{$taxonomy} = $this->get_terms( $taxonomy, array( 'fields' => 'all' ) );
  			}
  		}
  	}
code_tokens: protected function set_post ( $ post ) { $ this -> post = $ post ; $ this -> id = ( isset ( $ post -> ID ) ) ? $ post -> ID : false ; if ( ! empty ( $ this -> taxonomies ( ) ) ) { foreach ( $ this -> taxonomies ( ) as $ taxonomy ) { $ this -> { $ taxonomy } = $ this -> get_terms ( $ taxonomy , array ( 'fields' => 'all' ) ) ; } } }
docstring: Sets Post Data.
  
  @param $post
docstring_tokens: Sets Post Data .