public function set_object_type( $object_type ) {
		if ( ! in_array( $object_type, $supported = [ 'user', 'comment', 'term', 'post' ] ) ) {
			// @codingStandardsIgnoreLine
			_doing_it_wrong( __FUNCTION__, 'The object type must be one of: ' . implode( ', ', $supported ), null );
		}

		$this->object_type = $object_type;

		return $this;
	}
public function set_object_type( $object_type ) {
		if ( ! in_array( $object_type, $supported = [ 'user', 'comment', 'term', 'post' ] ) ) {
			// @codingStandardsIgnoreLine
			_doing_it_wrong( __FUNCTION__, 'The object type must be one of: ' . implode( ', ', $supported ), null );
		}

		$this->object_type = $object_type;

		return $this;
	}
public function set_object_type ( $ object_type ) { if ( ! in_array ( $ object_type , $ supported = [ 'user' , 'comment' , 'term' , 'post' ] ) ) { // @codingStandardsIgnoreLine _doing_it_wrong ( __FUNCTION__ , 'The object type must be one of: ' . implode ( ', ' , $ supported ) , null ) ; } $ this -> object_type = $ object_type ; return $ this ; }
Sets the current object type.

@param  string $object_type
@return $this
Sets the current object type .