mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
clean phpdoc for phpstan (#26905)
This commit is contained in:
@@ -288,7 +288,7 @@ class MyObject extends CommonObject
|
||||
*
|
||||
* @param User $user User that creates
|
||||
* @param bool $notrigger false=launch triggers after, true=disable triggers
|
||||
* @return int <0 if KO, Id of created object if OK
|
||||
* @return int Return integer <0 if KO, Id of created object if OK
|
||||
*/
|
||||
public function create(User $user, $notrigger = false)
|
||||
{
|
||||
@@ -405,7 +405,7 @@ class MyObject extends CommonObject
|
||||
* @param string $ref Ref
|
||||
* @param int $noextrafields 0=Default to load extrafields, 1=No extrafields
|
||||
* @param int $nolines 0=Default to load extrafields, 1=No extrafields
|
||||
* @return int <0 if KO, 0 if not found, >0 if OK
|
||||
* @return int Return integer <0 if KO, 0 if not found, >0 if OK
|
||||
*/
|
||||
public function fetch($id, $ref = null, $noextrafields = 0, $nolines = 0)
|
||||
{
|
||||
@@ -420,7 +420,7 @@ class MyObject extends CommonObject
|
||||
* Load object lines in memory from the database
|
||||
*
|
||||
* @param int $noextrafields 0=Default to load extrafields, 1=No extrafields
|
||||
* @return int <0 if KO, 0 if not found, >0 if OK
|
||||
* @return int Return integer <0 if KO, 0 if not found, >0 if OK
|
||||
*/
|
||||
public function fetchLines($noextrafields = 0)
|
||||
{
|
||||
@@ -541,7 +541,7 @@ class MyObject extends CommonObject
|
||||
*
|
||||
* @param User $user User that modifies
|
||||
* @param bool $notrigger false=launch triggers after, true=disable triggers
|
||||
* @return int <0 if KO, >0 if OK
|
||||
* @return int Return integer <0 if KO, >0 if OK
|
||||
*/
|
||||
public function update(User $user, $notrigger = false)
|
||||
{
|
||||
@@ -553,7 +553,7 @@ class MyObject extends CommonObject
|
||||
*
|
||||
* @param User $user User that deletes
|
||||
* @param bool $notrigger false=launch triggers, true=disable triggers
|
||||
* @return int <0 if KO, >0 if OK
|
||||
* @return int Return integer <0 if KO, >0 if OK
|
||||
*/
|
||||
public function delete(User $user, $notrigger = false)
|
||||
{
|
||||
@@ -716,7 +716,7 @@ class MyObject extends CommonObject
|
||||
*
|
||||
* @param User $user Object user that modify
|
||||
* @param int $notrigger 1=Does not execute triggers, 0=Execute triggers
|
||||
* @return int <0 if KO, >0 if OK
|
||||
* @return int Return integer <0 if KO, >0 if OK
|
||||
*/
|
||||
public function setDraft($user, $notrigger = 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user