src/Axolotl/Model.php
private function create_wp_object() {
		switch ( true ) {
			case $this instanceof UsesWordPressPost:
				$object = new WP_Post( (object) array() );
				break;
			case $this instanceof UsesWordPressTerm:
				$object = new WP_Term( (object) array() );
				break;
			default:
				throw new LogicException;
				break;
		}

		$this->attributes[ self::OBJECT_KEY ] = $this->set_wp_object_constants( $object );
	}
private function create_wp_object() {
		switch ( true ) {
			case $this instanceof UsesWordPressPost:
				$object = new WP_Post( (object) array() );
				break;
			case $this instanceof UsesWordPressTerm:
				$object = new WP_Term( (object) array() );
				break;
			default:
				throw new LogicException;
				break;
		}

		$this->attributes[ self::OBJECT_KEY ] = $this->set_wp_object_constants( $object );
	}
private function create_wp_object ( ) { switch ( true ) { case $ this instanceof UsesWordPressPost : $ object = new WP_Post ( ( object ) array ( ) ) ; break ; case $ this instanceof UsesWordPressTerm : $ object = new WP_Term ( ( object ) array ( ) ) ; break ; default : throw new LogicException ; break ; } $ this -> attributes [ self :: OBJECT_KEY ] = $ this -> set_wp_object_constants ( $ object ) ; }
Create and set with a new blank post.

Creates a new WP_Post object, assigns it the default attributes,
and stores it in the attributes.

@throws LogicException
Create and set with a new blank post .