diff --git a/lib/classes/media/Permalink/Adapter.php b/lib/classes/media/Permalink/Adapter.php index c1b0273ecf..f38ea03602 100644 --- a/lib/classes/media/Permalink/Adapter.php +++ b/lib/classes/media/Permalink/Adapter.php @@ -67,10 +67,9 @@ class media_Permalink_Adapter implements media_Permalink_Interface, cache_cachea protected $app; /** - * - * @param databox $databox - * @param media_subdef $media_subdef - * @return media_Permalink_Adapter + * @param Application $app + * @param databox $databox + * @param media_subdef $media_subdef */ protected function __construct(Application $app, databox $databox, media_subdef $media_subdef) { @@ -79,8 +78,6 @@ class media_Permalink_Adapter implements media_Permalink_Interface, cache_cachea $this->media_subdef = $media_subdef; $this->load(); - - return $this; } /** @@ -297,7 +294,6 @@ class media_Permalink_Adapter implements media_Permalink_Interface, cache_cachea } /** - * * @param Application $app * @param databox $databox * @param media_subdef $media_subdef diff --git a/lib/classes/media/subdef.php b/lib/classes/media/subdef.php index d82c27d91d..cab13bfe10 100644 --- a/lib/classes/media/subdef.php +++ b/lib/classes/media/subdef.php @@ -138,9 +138,8 @@ class media_subdef extends media_abstract implements cache_cacheableInterface /** * @param Application $app * @param record_adapter $record - * @param type $name - * @param type $substitute - * @return media_subdef + * @param string $name + * @param bool $substitute */ public function __construct(Application $app, record_adapter $record, $name, $substitute = false) { @@ -150,8 +149,6 @@ class media_subdef extends media_abstract implements cache_cacheableInterface $this->load($substitute); $this->generate_url(); - - return $this; } /** diff --git a/lib/classes/record/adapter.php b/lib/classes/record/adapter.php index 054449bf1e..141367f905 100644 --- a/lib/classes/record/adapter.php +++ b/lib/classes/record/adapter.php @@ -35,113 +35,32 @@ use Alchemy\Phrasea\Core\PhraseaTokens; class record_adapter implements RecordInterface, cache_cacheableInterface { - /** - * - * @var - */ protected $xml; - - /** - * - * @var - */ protected $base_id; - - /** - * - * @var - */ protected $record_id; - - /** - * - * @var - */ protected $mime; - - /** - * - * @var - */ protected $number; - - /** - * - * @var - */ protected $status; - - /** - * - * @var - */ protected $subdefs; - - /** - * - * @var - */ protected $type; - - /** - * - * @var - */ protected $sha256; - - /** - * - * @var - */ protected $grouping; - - /** - * - * @var - */ protected $duration; - - /** - * - * @var databox - */ + /** @var databox */ protected $databox; - - /** - * - * @var DateTime - */ + /** @var DateTime */ protected $creation_date; - - /** - * - * @var string - */ + /** @var string */ protected $original_name; - - /** - * - * @var Array - */ + /** @var array */ protected $technical_datas; - - /** - * - * @var caption_record - */ + /** @var caption_record */ protected $caption_record; - - /** - * - * @var string - */ + /** @var string */ protected $uuid; - - /** - * - * @var DateTime - */ + /** @var DateTime */ protected $modification_date; + /** @var Application */ protected $app; const CACHE_ORIGINAL_NAME = 'originalname'; @@ -154,13 +73,10 @@ class record_adapter implements RecordInterface, cache_cacheableInterface const CACHE_STATUS = 'status'; /** - * * @param Application $app * @param integer $sbas_id * @param integer $record_id * @param integer $number - * - * @return record_adapter */ public function __construct(Application $app, $sbas_id, $record_id, $number = null) { @@ -169,7 +85,7 @@ class record_adapter implements RecordInterface, cache_cacheableInterface $this->number = (int) $number; $this->record_id = (int) $record_id; - return $this->load(); + $this->load(); } protected function load()