| 1 | <?php |
||
| 15 | class WordPoints_BP_Entity_Friendship extends WordPoints_BP_Entity { |
||
|
|
|||
| 16 | |||
| 17 | /** |
||
| 18 | * @since 1.0.0 |
||
| 19 | */ |
||
| 20 | protected $bp_component = 'friends'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @since 1.0.0 |
||
| 24 | */ |
||
| 25 | protected $id_field = 'id'; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @since 1.2.1 |
||
| 29 | */ |
||
| 30 | protected $id_is_int = true; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @since 1.0.0 |
||
| 34 | */ |
||
| 35 | protected function get_entity( $id ) { |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @since 1.0.0 |
||
| 48 | */ |
||
| 49 | protected function get_entity_human_id( $entity ) { |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @since 1.0.0 |
||
| 61 | */ |
||
| 62 | public function get_title() { |
||
| 65 | } |
||
| 66 | |||
| 68 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.