Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MAINTENANCE] Unify and improve PHPDocs for class properties #1013

Merged
merged 18 commits into from
Sep 29, 2023
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 Library
*/
protected $owner;

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

Expand Down
Loading