Skip to content

Commit

Permalink
[MAINTENANCE] Unify and improve PHPDocs for class properties (#1013)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Meyer <[email protected]>
  • Loading branch information
beatrycze-volk and sebastian-meyer authored Sep 29, 2023
1 parent 59fdeec commit 157f997
Show file tree
Hide file tree
Showing 54 changed files with 441 additions and 531 deletions.
30 changes: 14 additions & 16 deletions Classes/Api/Orcid/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,44 +29,42 @@
class Client
{
/**
* constants for API endpoint
* @var string constant for API hostname
**/
const HOSTNAME = 'orcid.org';

/**
* @var string constant for API version
**/
const VERSION = '3.0';

/**
* This holds the logger
*
* @var Logger
* @access protected
* @var Logger This holds the logger
*/
protected $logger;

/**
* The ORCID API endpoint
*
* @var string
* @access private
* @var string The ORCID API endpoint
**/
private $endpoint = 'record';

/**
* The ORCID API access level
*
* @var string
* @access private
* @var string The ORCID API access level
**/
private $level = 'pub';

/**
* The ORCID ID to search for
*
* @var string
* @access private
* @var string The ORCID ID to search for
**/
private $orcid = null;

/**
* The request object
*
* @var RequestFactoryInterface
* @access private
* @var RequestFactoryInterface The request object
**/
private $requestFactory = null;

Expand Down
17 changes: 6 additions & 11 deletions Classes/Api/Orcid/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,20 @@
class Profile
{
/**
* This holds the logger
*
* @var Logger
* @access protected
* @var Logger This holds the logger
*/
protected $logger;

/**
* This holds the client
*
* @var Client
* @access protected
* @access private
* @var Client This holds the client
*/
protected $client;
private $client;

/**
* The raw ORCID profile
*
* @var \SimpleXmlElement|false
* @access private
* @var \SimpleXmlElement|false The raw ORCID profile
**/
private $raw = null;

Expand Down
17 changes: 7 additions & 10 deletions Classes/Api/Viaf/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,28 @@
class Client
{
/**
* This holds the logger
*
* @var Logger
* @access protected
* @var Logger This holds the logger
*/
protected $logger;

/**
* The VIAF API endpoint
*
* @var string
* @access private
* @var string The VIAF API endpoint
**/
private $endpoint = 'viaf.xml';

/**
* The VIAF URL for the profile
*
* @var string
* @access private
* @var string The VIAF URL for the profile
**/
private $viafUrl = null;

/**
* The request object
*
* @var RequestFactoryInterface
* @access private
* @var RequestFactoryInterface The request object
**/
private $requestFactory = null;

Expand Down
19 changes: 7 additions & 12 deletions Classes/Api/Viaf/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,20 @@
class Profile
{
/**
* This holds the logger
*
* @var Logger
* @access protected
* @access private
* @var Logger This holds the logger
*/
protected $logger;

/**
* This holds the client
*
* @var Client
* @access protected
* @access private
* @var Client This holds the client
*/
protected $client;
private $client;

/**
* The raw VIAF profile
*
* @var \SimpleXmlElement|false
* @access private
* @var \SimpleXmlElement|false The raw VIAF profile or false if not found
**/
private $raw = null;

Expand Down
10 changes: 8 additions & 2 deletions Classes/Command/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,38 +43,44 @@
class BaseCommand extends Command
{
/**
* @access protected
* @var CollectionRepository
*/
protected $collectionRepository;

/**
* @access protected
* @var DocumentRepository
*/
protected $documentRepository;

/**
* @access protected
* @var LibraryRepository
*/
protected $libraryRepository;

/**
* @access protected
* @var StructureRepository
*/
protected $structureRepository;

/**
* @access protected
* @var int
*/
protected $storagePid;

/**
* @access protected
* @var Library
*/
protected $owner;

/**
* @var array
* @access protected
* @var array
*/
protected $extConf;

Expand All @@ -101,7 +107,7 @@ public function __construct(CollectionRepository $collectionRepository,
/**
* Initialize the extbase repository based on the given storagePid.
*
* TYPO3 10+: Find a better solution e.g. based on Symfonie Dependency Injection.
* TYPO3 10+: Find a better solution e.g. based on Symfony Dependency Injection.
*
* @param int $storagePid The storage pid
*
Expand Down
Loading

0 comments on commit 157f997

Please sign in to comment.