Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
| 1 | <?php  | 
            ||
| 36 | View Code Duplication | class ProductVarcharAction extends AbstractAction implements ProductVarcharActionInterface  | 
            |
| 37 | { | 
            ||
| 38 | |||
| 39 | /**  | 
            ||
| 40 | * Helper method that create/update the passed entity, depending on  | 
            ||
| 41 | * the entity's status.  | 
            ||
| 42 | *  | 
            ||
| 43 | * @param array $row The entity data to create/update  | 
            ||
| 44 | *  | 
            ||
| 45 | * @return string The last inserted ID  | 
            ||
| 46 | */  | 
            ||
| 47 | public function persist(array $row)  | 
            ||
| 56 | |||
| 57 | /**  | 
            ||
| 58 | * Creates's the entity with the passed attributes.  | 
            ||
| 59 | *  | 
            ||
| 60 | * @param array $row The attributes of the entity to create  | 
            ||
| 61 | * @param string|null $name The name of the prepared statement that has to be executed  | 
            ||
| 62 | *  | 
            ||
| 63 | * @return string The last inserted ID  | 
            ||
| 64 | */  | 
            ||
| 65 | public function create($row, $name = null)  | 
            ||
| 69 | |||
| 70 | /**  | 
            ||
| 71 | * Update's the entity with the passed attributes.  | 
            ||
| 72 | *  | 
            ||
| 73 | * @param array $row The attributes of the entity to update  | 
            ||
| 74 | * @param string|null $name The name of the prepared statement that has to be executed  | 
            ||
| 75 | *  | 
            ||
| 76 | * @return string The ID of the updated product  | 
            ||
| 77 | */  | 
            ||
| 78 | public function update($row, $name = null)  | 
            ||
| 82 | }  | 
            ||
| 83 | 
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.