| 1 | <?php  | 
            ||
| 7 | class MediaDeleteItemAction implements ItemActionInterface  | 
            ||
| 8 | { | 
            ||
| 9 | /**  | 
            ||
| 10 | * @var string  | 
            ||
| 11 | */  | 
            ||
| 12 | private $redirectUrl;  | 
            ||
| 13 | |||
| 14 | /**  | 
            ||
| 15 | * @param string $redirectUrl  | 
            ||
| 16 | */  | 
            ||
| 17 | public function __construct($redirectUrl)  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * @param mixed $item  | 
            ||
| 24 | *  | 
            ||
| 25 | * @return array  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 26 | */  | 
            ||
| 27 | public function getUrlFor($item)  | 
            ||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * @param mixed $item  | 
            ||
| 37 | *  | 
            ||
| 38 | * @return string  | 
            ||
| 39 | */  | 
            ||
| 40 | public function getLabelFor($item)  | 
            ||
| 44 | |||
| 45 | /**  | 
            ||
| 46 | * @param mixed $item  | 
            ||
| 47 | *  | 
            ||
| 48 | * @return string  | 
            ||
| 49 | */  | 
            ||
| 50 | public function getIconFor($item)  | 
            ||
| 54 | |||
| 55 | /**  | 
            ||
| 56 | * @return string  | 
            ||
| 57 | */  | 
            ||
| 58 | public function getTemplate()  | 
            ||
| 62 | }  | 
            ||
| 63 | 
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.