src/Axolotl/Model.php
protected function set_wp_object_constants( $object ) {
		if ( $this instanceof UsesWordPressPost ) {
			$object->post_type = static::get_post_type();
		}

		if ( $this instanceof UsesWordPressTerm ) {
			$object->taxonomy = static::get_taxonomy();
		}

		return $object;
	}
protected function set_wp_object_constants( $object ) {
		if ( $this instanceof UsesWordPressPost ) {
			$object->post_type = static::get_post_type();
		}

		if ( $this instanceof UsesWordPressTerm ) {
			$object->taxonomy = static::get_taxonomy();
		}

		return $object;
	}
protected function set_wp_object_constants ( $ object ) { if ( $ this instanceof UsesWordPressPost ) { $ object -> post_type = static :: get_post_type ( ) ; } if ( $ this instanceof UsesWordPressTerm ) { $ object -> taxonomy = static :: get_taxonomy ( ) ; } return $ object ; }
Enforces values on the post that can't change.

Primarily, this is used to make sure the post_type always maps
to the model's "$type" property, but this can all be overridden
by the developer to enforce other values in the model.

@param object $object

@return object
Enforces values on the post that can t change .