Skip to content

Commit

Permalink
Unify and improve PHPDocs for class properties
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Sep 27, 2023
1 parent db4ecb1 commit 5ee773f
Show file tree
Hide file tree
Showing 54 changed files with 405 additions and 504 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 endpoint
**/
const HOSTNAME = 'orcid.org';

/**
* @var string constant for API version endpoint
**/
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
19 changes: 7 additions & 12 deletions Classes/Api/Viaf/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,26 @@
class Client
{
/**
* 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 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
8 changes: 7 additions & 1 deletion 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 \Kitodo\Dlf\Domain\Model\Library
*/
protected $owner;

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

Expand Down
Loading

0 comments on commit 5ee773f

Please sign in to comment.