@@ -825,7 +825,7 @@ |
||
| 825 | 825 | * @param string $type |
| 826 | 826 | * @param string $local_key |
| 827 | 827 | * |
| 828 | - * @return HasMany |
|
| 828 | + * @return BelongsToOne |
|
| 829 | 829 | */ |
| 830 | 830 | protected function belongs_to_one( $class, $type, $local_key = '' ) { |
| 831 | 831 | return new BelongsToOne( $this, $class, $type, $local_key ); |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | /** |
| 91 | 91 | * Gets the ID value for the target model to search by. |
| 92 | 92 | * |
| 93 | - * @return int|false |
|
| 93 | + * @return integer |
|
| 94 | 94 | * |
| 95 | 95 | * @throws LogicException |
| 96 | 96 | */ |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | /** |
| 160 | 160 | * Fills the provided Model with attributes from its custom table. |
| 161 | 161 | * |
| 162 | - * @param Model|UsesCustomTable $model |
|
| 162 | + * @param Model $model |
|
| 163 | 163 | */ |
| 164 | 164 | protected function fill_table_attrs_from_table( Model $model ) { |
| 165 | 165 | $sql[] = "SELECT * FROM {$this->make_table_name( $model )}"; |
@@ -239,7 +239,7 @@ |
||
| 239 | 239 | * |
| 240 | 240 | * @param Model $model |
| 241 | 241 | * |
| 242 | - * @return int|WP_Error |
|
| 242 | + * @return integer |
|
| 243 | 243 | */ |
| 244 | 244 | abstract protected function save_wp_object( Model $model ); |
| 245 | 245 | |