| Total Complexity | 6 | 
| Total Lines | 100 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 6 | class File extends Block  | 
            ||
| 7 | { | 
            ||
| 8 | /**  | 
            ||
| 9 | * Block type.  | 
            ||
| 10 | *  | 
            ||
| 11 | * @var string  | 
            ||
| 12 | */  | 
            ||
| 13 | protected $type = 'file';  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * External identifier for the file.  | 
            ||
| 17 | *  | 
            ||
| 18 | * @var string  | 
            ||
| 19 | */  | 
            ||
| 20 | protected $external_id;  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * Source for the file.  | 
            ||
| 24 | *  | 
            ||
| 25 | * @var string  | 
            ||
| 26 | */  | 
            ||
| 27 | protected $source = 'remote';  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * Internal attribute to property map.  | 
            ||
| 31 | *  | 
            ||
| 32 | * @var array  | 
            ||
| 33 | */  | 
            ||
| 34 | protected static $availableAttributes = [  | 
            ||
| 35 | 'external_id' => 'external_id',  | 
            ||
| 36 | 'source' => 'source',  | 
            ||
| 37 | 'block_id' => 'block_id',  | 
            ||
| 38 | ];  | 
            ||
| 39 | |||
| 40 | /**  | 
            ||
| 41 | * Get the external identifier for the file.  | 
            ||
| 42 | *  | 
            ||
| 43 | * @return string  | 
            ||
| 44 | */  | 
            ||
| 45 | 3 | public function getExternalId()  | 
            |
| 48 | }  | 
            ||
| 49 | |||
| 50 | /**  | 
            ||
| 51 | * Set the external identifier for the file.  | 
            ||
| 52 | *  | 
            ||
| 53 | * @param string $externalId  | 
            ||
| 54 | *  | 
            ||
| 55 | * @return File  | 
            ||
| 56 | */  | 
            ||
| 57 | 3 | public function setExternalId($externalId)  | 
            |
| 62 | }  | 
            ||
| 63 | |||
| 64 | /**  | 
            ||
| 65 | * Get the file source.  | 
            ||
| 66 | *  | 
            ||
| 67 | * @return string  | 
            ||
| 68 | */  | 
            ||
| 69 | 2 | public function getSource()  | 
            |
| 72 | }  | 
            ||
| 73 | |||
| 74 | /**  | 
            ||
| 75 | * Set the file source.  | 
            ||
| 76 | *  | 
            ||
| 77 | * @param string $source  | 
            ||
| 78 | *  | 
            ||
| 79 | * @return File  | 
            ||
| 80 | */  | 
            ||
| 81 | 1 | public function setSource($source)  | 
            |
| 86 | }  | 
            ||
| 87 | |||
| 88 | /**  | 
            ||
| 89 | * Convert the block to its array representation.  | 
            ||
| 90 | *  | 
            ||
| 91 | * @return array  | 
            ||
| 92 | */  | 
            ||
| 93 | 2 | public function toArray()  | 
            |
| 108 |